Module: StackCommander::Command

Included in:
BaseCommand
Defined in:
lib/stack_commander/command.rb

Instance Method Summary collapse

Instance Method Details

#actionObject



13
14
# File 'lib/stack_commander/command.rb', line 13

def action
end

#call(stack) ⇒ Object



3
4
5
6
7
8
9
10
11
# File 'lib/stack_commander/command.rb', line 3

def call(stack)
  action
  stack.call
rescue => exception
  recover(exception)
  raise
ensure
  insurance
end

#insuranceObject



19
20
# File 'lib/stack_commander/command.rb', line 19

def insurance
end

#recover(exception) ⇒ Object



16
17
# File 'lib/stack_commander/command.rb', line 16

def recover(exception)
end