Sha256: 0ef9a3a1914933dcf47be4c4921af52c6b6292ff889508afe24400f51f46fc3a
Contents?: true
Size: 802 Bytes
Versions: 4
Compression:
Stored size: 802 Bytes
Contents
require 'flydata/command/base' require 'flydata/command/sender' require 'flydata/command/helper' module Flydata module Command class Start < 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(*args) sender = Flydata::Command::Sender.new(opts) sender.start unless opts.skip_helper? helper_opts = Flydata::Command::Helper.slop_start helper_opts.parse!(args) helper = Flydata::Command::Helper.new(helper_opts) helper.stop # kill existing helper process (if any) and start helper.start end end run_exclusive :run end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
flydata-0.5.8 | lib/flydata/command/start.rb |
flydata-0.5.7 | lib/flydata/command/start.rb |
flydata-0.5.6 | lib/flydata/command/start.rb |
flydata-0.5.5 | lib/flydata/command/start.rb |