Sha256: ad1602b6a7df223c493173c0901f5bab45ba815cd4ec6af5bd7b1d670e8388e0

Contents?: true

Size: 542 Bytes

Versions: 12

Compression:

Stored size: 542 Bytes

Contents

require 'flydata/command/base'
require 'flydata/command/sender'
require 'flydata/command/helper'

module Flydata
  module Command
    class Restart < Base
      def self.slop
        Slop.new do
          on 'skip-helper', 'Skip restarting the Helper'
        end
      end

      def run
        sender = Flydata::Command::Sender.new
        sender.restart
        unless opts.skip_helper?
          helper = Flydata::Command::Helper.new
          helper.restart(quiet: true)
        end
      end
      run_exclusive :run
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

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