Sha256: e05c2c81284310b2b00e0fce2335ad13860c089ca72b47f7d8f94292285c6144
Contents?: true
Size: 929 Bytes
Versions: 19
Compression:
Stored size: 929 Bytes
Contents
module SimpleDeploy class AWS class CloudFormation class Error def initialize(args) @logger = SimpleDeploy.logger @exception = args[:exception] end 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 end end end end
Version data entries
19 entries across 19 versions & 1 rubygems