class ZAWS::AWSCLI::Commands::EC2::CreateVPC

Public Class Methods

new(shellout, awscli) click to toggle source
# File lib/zaws/external/awscli/commands/ec2/create_vpc.rb, line 7
def initialize(shellout, awscli)
  @shellout=shellout
  @awscli=awscli
end

Public Instance Methods

execute(region, view, cidr, textout=nil, verbose=nil,profile=nil) click to toggle source
# File lib/zaws/external/awscli/commands/ec2/create_vpc.rb, line 12
def execute(region, view, cidr,  textout=nil, verbose=nil,profile=nil)
  comline="aws --output #{view} --region #{region} ec2 create-vpc --cidr-block #{cidr}"
  @awscli.data_ec2.vpc.load(comline, @shellout.cli(comline, verbose), textout)
end