class StackMaster::AwsDriver::CloudFormation

Public Instance Methods

region() click to toggle source
# File lib/stack_master/aws_driver/cloud_formation.rb, line 6
def region
  @region ||= ENV['AWS_REGION'] || Aws.config[:region] || Aws.shared_config.region
end
set_region(value) click to toggle source
# File lib/stack_master/aws_driver/cloud_formation.rb, line 10
def set_region(value)
  if region != value
    @region = value
    @cf = nil
  end
end

Private Instance Methods

cf() click to toggle source
# File lib/stack_master/aws_driver/cloud_formation.rb, line 38
def cf
  @cf ||= Aws::CloudFormation::Client.new(region: region, retry_limit: 10)
end