Sha256: bae12c9813f79a887d79731f919221ffc1c560c0a3ee3d00d0ea6c3450786398

Contents?: true

Size: 587 Bytes

Versions: 45

Compression:

Stored size: 587 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'
          on 'force-run', 'Run forcefully, ignoring exclusive run info'
        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

45 entries across 45 versions & 1 rubygems

Version Path
flydata-0.8.10.2 lib/flydata/command/stop.rb
flydata-0.8.10.1 lib/flydata/command/stop.rb
flydata-0.8.9.11 lib/flydata/command/stop.rb
flydata-0.8.10 lib/flydata/command/stop.rb
flydata-0.8.9 lib/flydata/command/stop.rb
flydata-0.8.8 lib/flydata/command/stop.rb
flydata-0.8.7 lib/flydata/command/stop.rb
flydata-0.8.6 lib/flydata/command/stop.rb
flydata-0.8.5 lib/flydata/command/stop.rb
flydata-0.8.4 lib/flydata/command/stop.rb
flydata-0.8.3 lib/flydata/command/stop.rb
flydata-0.8.2 lib/flydata/command/stop.rb
flydata-0.8.1 lib/flydata/command/stop.rb
flydata-0.8.0 lib/flydata/command/stop.rb
flydata-0.7.19 lib/flydata/command/stop.rb
flydata-0.7.18 lib/flydata/command/stop.rb
flydata-0.7.17 lib/flydata/command/stop.rb
flydata-0.7.16 lib/flydata/command/stop.rb
flydata-0.7.15 lib/flydata/command/stop.rb
flydata-0.7.14 lib/flydata/command/stop.rb