Sha256: 90f0d46832efc20cbd76ea67ee29f96849e24651689cb90ead599334ac26f712
Contents?: true
Size: 833 Bytes
Versions: 1
Compression:
Stored size: 833 Bytes
Contents
require_relative "rodeo_clown/version" require "aws-sdk" module RodeoClown # # Set aws credentials as environment variables # Set aws credentials in the ~/.rodeo_clown.yml # # Just set your aws credentials def self.credentials @credentials ||= if ENV.key?("AWS_ACCESS_KEY") && ENV.key?("AWS_SECRET_ACCESS_KEY") { access_key_id: ENV["AWS_ACCESS_KEY"], secret_access_key: ENV["AWS_SECRET_ACCESS_KEY"], } elsif File.exists?(file = File.expand_path("~") + "/.rodeo_clown.yml") YAML.load_file(file) else raise "Please supply aws_access_key and Aws_secret_access_key" end end end AWS.config RodeoClown.credentials # Street cred require_relative "rodeo_clown/ec2" require_relative "rodeo_clown/elb" require_relative "rodeo_clown/ext/instance_collection.rb"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rodeo_clown-0.0.1 | lib/rodeo_clown.rb |