Class: Testjour::CLI::SlaveWarm
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, #option_parser, options
Constructor Details
#initialize(parser, args) ⇒ 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
.command ⇒ Object
11
12
13
|
# File 'lib/testjour/commands/slave_warm.rb', line 11
def self.command
"slave:warm"
end
|
Instance Method Details
#run ⇒ Object
21
22
23
24
25
|
# File 'lib/testjour/commands/slave_warm.rb', line 21
def run
retryable :tries => 2, :on => RsyncFailed do
Testjour::Rsync.copy_to_current_directory_from(@queue)
end
end
|