lib/flydata/command/stop.rb in flydata-0.3.24 vs lib/flydata/command/stop.rb in flydata-0.4.0
- old
+ new
@@ -1,13 +1,23 @@
require 'flydata/command/base'
require 'flydata/command/sender'
+require 'flydata/command/helper'
module Flydata
module Command
class Stop < Base
+ def self.slop
+ Slop.new do
+ on 'f', 'full', 'Stop all the processes'
+ end
+ end
def run
sender = Flydata::Command::Sender.new
sender.stop
+ if opts.full?
+ helper = Flydata::Command::Helper.new
+ helper.stop
+ end
end
end
end
end