require 'flydata/command/base' require 'flydata/command/sender' require 'flydata/command/helper' module Flydata module Command class Restart < Base def self.slop sender_opts = Flydata::Command::Sender.slop_start # Needs options for Sender#start sender_opts.on 'skip-helper', 'Skip starting the Helper' sender_opts end def run sender = Flydata::Command::Sender.new(opts) sender.restart unless opts.skip_helper? system "flydata helper:restart" end end run_exclusive :run end end end