11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# File 'lib/simple_deploy/aws/cloud_formation/error.rb', line 11
def process
message = @exception.message
unless message.empty?
case message
when 'No updates are to be performed.'
@logger.info message
when /^Stack:(.*) does not exist$/
@logger.error message
raise Exceptions::UnknownStack.new message
else
@logger.error message
raise Exceptions::CloudFormationError.new message
end
else
@logger.error "Unknown exception from cloudformation #{@exception.inspect}"
raise Exceptions::CloudFormationError.new "Unknown exception from cloudformation"
end
end
|