Class: CloudFormationTool::CLI::Status

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/cloud_formation_tool/cli/status.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



8
9
10
11
12
13
14
# File 'lib/cloud_formation_tool/cli/status.rb', line 8

def execute
  if CloudFormation::Stack.new(stack_name).exist?
    log "OK"
  else
    error "Stack #{stack_name} does not exist"
  end
end