module Elb::Helper
Public Instance Methods
as()
click to toggle source
# File lib/elb/helper.rb, line 32 def as @as ||= AWS::AutoScaling.new end
cfn()
click to toggle source
# File lib/elb/helper.rb, line 24 def cfn @cfn ||= AWS::CloudFormation.new end
ec2()
click to toggle source
# File lib/elb/helper.rb, line 20 def ec2 @ec2 ||= AWS::EC2.new end
r53()
click to toggle source
# File lib/elb/helper.rb, line 36 def r53 @r53 ||= AWS::Route53.new end
rds()
click to toggle source
# File lib/elb/helper.rb, line 28 def rds @rds ||= AWS::RDS.new end
setup_aws(region='us-east-1', options={})
click to toggle source
# File lib/elb/helper.rb, line 6 def setup_aws(region='us-east-1', options={}) return if @@setup_aws path = Elb::Settings.new.aws_path if File.exist?(path) @config = YAML.load(IO.read(path)) AWS.config( :http_wire_trace => options[:debug], :access_key_id => @config[:aws_access_key_id], :secret_access_key => @config[:aws_secret_access_key] ) end @@setup_aws = true end