Class: Outback::ShellTask

Inherits:
Task
  • Object
show all
Defined in:
lib/outback/task.rb

Instance Attribute Summary collapse

Attributes inherited from Task

#name, #stderr, #stdout

Instance Method Summary collapse

Methods inherited from Task

#rollback, #rollout

Constructor Details

#initialize(rollout, rollback) ⇒ ShellTask

Returns a new instance of ShellTask.



51
52
53
54
55
56
57
# File 'lib/outback/task.rb', line 51

def initialize(rollout, rollback)
  super()
  @rollout = lambda { |t| t.sys rollout }
  @rollout_command = rollout
  @rollback = lambda { |t| t.sys rollback }
  @rollback_command = rollback
end

Instance Attribute Details

#rollback_commandObject (readonly)

Returns the value of attribute rollback_command.



49
50
51
# File 'lib/outback/task.rb', line 49

def rollback_command
  @rollback_command
end

#rollout_commandObject (readonly)

Returns the value of attribute rollout_command.



49
50
51
# File 'lib/outback/task.rb', line 49

def rollout_command
  @rollout_command
end