Sha256: 2862a9626aab7dcc5b404d06f934a68f0661e254971500aeae7b950ffb1bb13b
Contents?: true
Size: 777 Bytes
Versions: 1
Compression:
Stored size: 777 Bytes
Contents
require 'aws-sdk-v1' module Elb module Helper @@setup_aws = nil 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 def ec2 @ec2 ||= AWS::EC2.new end def cfn @cfn ||= AWS::CloudFormation.new end def rds @rds ||= AWS::RDS.new end def as @as ||= AWS::AutoScaling.new end def r53 @r53 ||= AWS::Route53.new end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elb-0.0.7 | lib/elb/helper.rb |