Class: CobraCommander::Executor::WorkerPool::Job

Inherits:
Struct
  • Object
show all
Defined in:
lib/cobra_commander/executor/worker_pool.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



20
21
22
# File 'lib/cobra_commander/executor/worker_pool.rb', line 20

def args
  @args
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



20
21
22
# File 'lib/cobra_commander/executor/worker_pool.rb', line 20

def name
  @name
end

#outputObject (readonly)

Returns the value of attribute output.



21
22
23
# File 'lib/cobra_commander/executor/worker_pool.rb', line 21

def output
  @output
end

#statusObject (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

Returns:

  • (Boolean)


28
29
30
# File 'lib/cobra_commander/executor/worker_pool.rb', line 28

def resolved?
  !@status.nil?
end