Sha256: 19f7b6a3fde6f4658ca325e453369e0aee66779c615369ebe3dda2256e865b97

Contents?: true

Size: 529 Bytes

Versions: 4

Compression:

Stored size: 529 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
        end
      end
      run_exclusive :run
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
flydata-0.5.8 lib/flydata/command/restart.rb
flydata-0.5.7 lib/flydata/command/restart.rb
flydata-0.5.6 lib/flydata/command/restart.rb
flydata-0.5.5 lib/flydata/command/restart.rb