Sha256: 10de6111cb1cab779201401bb6254ade57e49a31e93853c6b6b56283216e4ab5
Contents?: true
Size: 781 Bytes
Versions: 5
Compression:
Stored size: 781 Bytes
Contents
module Fog module AWS class EC2 def addresses Fog::AWS::EC2::Addresses.new(:connection => self) end class Addresses < Fog::Collection def all(public_ip = []) data = connection.describe_addresses(public_ip).body addresses = Fog::AWS::EC2::Addresses.new(:connection => connection) data['addressesSet'].each do |address| addresses << Fog::AWS::EC2::Address.new({ :connection => connection }.merge!(address)) end addresses end def create address = new address.save address end def new Fog::AWS::S3::Address.new(:connection => connection) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems