class CuffSert::StackConfig

Attributes

aws_region[RW]
op_mode[RW]
parameters[RW]
selected_path[RW]
stack_uri[RW]
stackname[RW]
suffix[RW]
tags[RW]

Public Class Methods

new() click to toggle source
# File lib/cuffsert/metadata.rb, line 9
def initialize
  @aws_region = ENV['AWS_REGION'] || ENV['AWS_DEFAULT_REGION'] || 'us-east-1'
  @selected_path = []
  @op_mode = :normal
  @parameters = {}
  @tags = {}
end

Public Instance Methods

append_path(lmnt) click to toggle source
# File lib/cuffsert/metadata.rb, line 17
def append_path(lmnt)
  @selected_path << lmnt
end
update_from(metadata) click to toggle source
# File lib/cuffsert/metadata.rb, line 21
def update_from(metadata)
  @stackname = metadata[:stackname] || @stackname
  @suffix = metadata[:suffix] || @suffix
  @parameters.merge!(metadata[:parameters] || {})
  @tags.merge!(metadata[:tags] || {})
  self
end