Sha256: 491ae73a2db3f93f721ed73be1053d46c9d61bc5319e755e533677d240011e7e
Contents?: true
Size: 636 Bytes
Versions: 2
Compression:
Stored size: 636 Bytes
Contents
require 'xmlsimple' module Stackster class AWS class CloudFormation class Error def initialize(args) @exception = args[:exception] @config = args[:config] @logger = @config.logger end def process message = XmlSimple.xml_in(@exception.response.body) message['Error'].first['Message'].each do |msg| case msg when 'No updates are to be performed.' @logger.info msg else @logger.error msg exit 1 end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stackster-0.2.4 | lib/stackster/aws/cloud_formation/error.rb |
stackster-0.2.3 | lib/stackster/aws/cloud_formation/error.rb |