lib/cfer.rb
# Creates or updates a CloudFormation stack
# @param stack_name [String] The name of the stack to update
# @param options [Hash]
Creates or updates a CloudFormation stack
Creates or updates a CloudFormation stack
def tail!(stack_name, options = {}, &block)
      config(options)
      cfn = options[:aws_options] || {}
      cfn_client = options[:cfer_client] || Cfer::Cfn::Client.new(cfn.merge(stack_name: stack_name))
      if block
        cfn_client.tail(options, &block)
      else
        cfn_client.tail(options) do |event|
          Cfer::LOGGER.info "%s %-30s %-40s %-20s %s" % [event.timestamp, color_map(event.resource_status), event.resource_type, event.logical_resource_id, event.resource_status_reason]
        end
      end
    end
def tail! ( stack_name , options = { } , & block ) config ( options ) cfn = options [ :aws_options ] || { } cfn_client = options [ :cfer_client ] || Cfer :: Cfn :: Client . new ( cfn . merge ( stack_name : stack_name ) ) if block cfn_client . tail ( options , & block ) else cfn_client . tail ( options ) do | event | Cfer :: LOGGER . info "%s %-30s %-40s %-20s %s" % [ event . timestamp , color_map ( event . resource_status ) , event . resource_type , event . logical_resource_id , event . resource_status_reason ] end end end
Creates or updates a CloudFormation stack
Creates or updates a CloudFormation stack
stack_name
The name of the stack to update
The name of the stack to update
options
<not_specific>
block
<not_specific>
<not_specific>
None