Class: Testjour::CLI::SlaveWarm

Inherits:
BaseCommand show all
Defined in:
lib/testjour/commands/slave_warm.rb

Instance Attribute Summary

Attributes inherited from BaseCommand

#non_options, #options

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseCommand

detailed_help, help, inherited, #option_parser, options, #testjour_bin_path

Constructor Details

#initialize(parser, args) ⇒ SlaveWarm

Returns a new instance of SlaveWarm.



15
16
17
18
19
# File 'lib/testjour/commands/slave_warm.rb', line 15

def initialize(parser, args)
  Testjour.logger.debug "Runner command #{self.class}..."
  super
  @queue = @non_options.first
end

Class Method Details

.commandObject



11
12
13
# File 'lib/testjour/commands/slave_warm.rb', line 11

def self.command
  "slave:warm"
end

Instance Method Details

#runObject



21
22
23
# File 'lib/testjour/commands/slave_warm.rb', line 21

def run
  Testjour::Rsync.copy_to_current_directory_from(@queue)
end