class Chimp::ExecArray
Public Instance Methods
describe_work()
click to toggle source
# File lib/right_chimp/exec/exec_array.rb, line 27 def describe_work "ExecArray job_id=#{@job_id} script=\"#{@exec['right_script']['name']}\" server=\"#{@server['nickname']}\"" end
info()
click to toggle source
# File lib/right_chimp/exec/exec_array.rb, line 31 def info @exec['right_script']['name'] end
run()
click to toggle source
# File lib/right_chimp/exec/exec_array.rb, line 6 def run run_with_retry do options = @inputs if @timeout < 300 Log.error 'timeout was less than 5 minutes! resetting to 5 minutes' @timeout = 300 end audit_entry = @array.run_script_on_instances(@exec, @server['href'], options) if audit_entry audit_entry.each do |a| a.wait_for_completed('no audit link available', @timeout) end else Log.warn "No audit entries returned for job_id=#{@job_id}" end end end
target()
click to toggle source
# File lib/right_chimp/exec/exec_array.rb, line 35 def target @server['nickname'] end