Sha256: 1d88fc52483a770dcbac03ec27521d37d2b13558ec6498e81b3cd8ee1a95e4b4

Contents?: true

Size: 477 Bytes

Versions: 9

Compression:

Stored size: 477 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
flydata-0.5.4 lib/flydata/command/stop.rb
flydata-0.5.3 lib/flydata/command/stop.rb
flydata-0.5.2 lib/flydata/command/stop.rb
flydata-0.5.1 lib/flydata/command/stop.rb
flydata-0.5.0 lib/flydata/command/stop.rb
flydata-0.4.3 lib/flydata/command/stop.rb
flydata-0.4.2 lib/flydata/command/stop.rb
flydata-0.4.1 lib/flydata/command/stop.rb
flydata-0.4.0 lib/flydata/command/stop.rb