Sha256: 6099d580565c72f062f5e8975c089efbc98facc92ac7b599c908af6d88cb0ded

Contents?: true

Size: 515 Bytes

Versions: 15

Compression:

Stored size: 515 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(quiet: true)
        end
      end
      run_exclusive :run
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
flydata-0.6.3 lib/flydata/command/stop.rb
flydata-0.6.2 lib/flydata/command/stop.rb
flydata-0.6.1 lib/flydata/command/stop.rb
flydata-0.6.0 lib/flydata/command/stop.rb
flydata-0.5.21 lib/flydata/command/stop.rb
flydata-0.5.20 lib/flydata/command/stop.rb
flydata-0.5.17 lib/flydata/command/stop.rb
flydata-0.5.16 lib/flydata/command/stop.rb
flydata-0.5.15 lib/flydata/command/stop.rb
flydata-0.5.14 lib/flydata/command/stop.rb
flydata-0.5.13 lib/flydata/command/stop.rb
flydata-0.5.12 lib/flydata/command/stop.rb
flydata-0.5.11 lib/flydata/command/stop.rb
flydata-0.5.10 lib/flydata/command/stop.rb
flydata-0.5.9 lib/flydata/command/stop.rb