Sha256: 3d15d49d1829f509a6a7e1eae5204d44e7422cff0f37003590ae6f373246d3fa

Contents?: true

Size: 284 Bytes

Versions: 5

Compression:

Stored size: 284 Bytes

Contents

module VPC
  class Subnet
    attr_accessor :subnet_id,:az

    def create(vpc,subnet_cidr_block,az)
      @az = az
      @subnet_id = vpc.gateway.create_subnet(subnet_cidr_block,vpc.vpc_id,az)
    end

    def delete(vpc)
      vpc.gateway.delete_subnet(@subnet_id)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
etude_for_aws-0.7.10 lib/etude_for_aws/vpc/subnet.rb
etude_for_aws-0.7.9 lib/etude_for_aws/vpc/subnet.rb
etude_for_aws-0.7.8 lib/etude_for_aws/vpc/subnet.rb
etude_for_aws-0.7.7 lib/etude_for_aws/vpc/subnet.rb
etude_for_aws-0.7.6 lib/etude_for_aws/vpc/subnet.rb