Sha256: 59fb178357585e112c878a109e6b4cc7835613f411a5b31ec9d6dd2d55775db6
Contents?: true
Size: 439 Bytes
Versions: 2
Compression:
Stored size: 439 Bytes
Contents
require 'aws-sdk' module AwsDump class Account < Hash attr_accessor :options def initialize(name, options = {}) @options = options self[:name] = name AWS.memoize do self[:regions] = regions.sort end end def regions aws.regions.collect do |region| Region.new(self, region) end end private def aws @aws ||= AWS::EC2.new(@options) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
aws_dump-0.0.2 | lib/aws_dump/account.rb |
aws_dump-0.0.1 | lib/aws_dump/account.rb |