Class: CobraCommander::Executor::WorkerPool::Job
- Inherits:
-
Struct
- Object
- Struct
- CobraCommander::Executor::WorkerPool::Job
- Defined in:
- lib/cobra_commander/executor/worker_pool.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#name ⇒ Object
Returns the value of attribute name.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
20 21 22 |
# File 'lib/cobra_commander/executor/worker_pool.rb', line 20 def args @args end |
#name ⇒ Object
Returns the value of attribute name
20 21 22 |
# File 'lib/cobra_commander/executor/worker_pool.rb', line 20 def name @name end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
21 22 23 |
# File 'lib/cobra_commander/executor/worker_pool.rb', line 21 def output @output end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
21 22 23 |
# File 'lib/cobra_commander/executor/worker_pool.rb', line 21 def status @status end |
Instance Method Details
#resolve!(status, output) ⇒ Object
23 24 25 26 |
# File 'lib/cobra_commander/executor/worker_pool.rb', line 23 def resolve!(status, output) @status = status @output = output end |
#resolved? ⇒ Boolean
28 29 30 |
# File 'lib/cobra_commander/executor/worker_pool.rb', line 28 def resolved? !@status.nil? end |