Class: Chimp::ExecCallback

Inherits:
Executor show all
Defined in:
lib/right_chimp/exec/ExecCallback.rb

Constant Summary

Constants inherited from Executor

Chimp::Executor::STATUS_DONE, Chimp::Executor::STATUS_ERROR, Chimp::Executor::STATUS_HOLDING, Chimp::Executor::STATUS_NONE, Chimp::Executor::STATUS_RETRYING, Chimp::Executor::STATUS_RUNNING

Instance Attribute Summary

Attributes inherited from Executor

#array, #dry_run, #error, #exec, #group, #inputs, #job_id, #owner, #quiet, #results, #retry_count, #retry_sleep, #server, #status, #template, #time_end, #time_start, #timeout, #verbose

Instance Method Summary collapse

Methods inherited from Executor

#cancel, #get_total_exec_time, #info, #initialize, #queue, #requeue, #target

Constructor Details

This class inherits a constructor from Chimp::Executor

Instance Method Details

#runObject



6
7
8
9
10
11
12
13
# File 'lib/right_chimp/exec/ExecCallback.rb', line 6

def run
  response = RestClient.get @uri
  if response.code > 199 and response.code < 300
    return true
  else
    return false
  end
end