Sha256: b11fa6f7113f09a8f90b0c05393e996fd5a115b6419f3813270c1f487954d5c0
Contents?: true
Size: 635 Bytes
Versions: 6
Compression:
Stored size: 635 Bytes
Contents
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? helper = Flydata::Command::Helper.new helper.restart(quiet: true) end end run_exclusive :run end end end
Version data entries
6 entries across 6 versions & 1 rubygems