Sha256: 53c0d67bbeb16d1468a8e86e6e9451d3450cca6e8735d9de6ec02f655b4aba54
Contents?: true
Size: 418 Bytes
Versions: 3
Compression:
Stored size: 418 Bytes
Contents
module Awsrm class Vpc < Awsrm::Resource FILTER_MAP = { name: 'tag:Name' }.freeze class << self def all(params) res = ec2_client.describe_vpcs( filters: filters(params) ) res.vpcs.map do |route| VpcReader.new(route) end end end end class VpcReader < Awsrm::ResourceReader def id @resource.vpc_id end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
awsrm-0.2.0 | lib/awsrm/resources/vpc.rb |
awsrm-0.1.1 | lib/awsrm/resources/vpc.rb |
awsrm-0.1.0 | lib/awsrm/resources/vpc.rb |