Class: ZAWS::AWSCLI::Commands::EC2::DescribeVpcPeeringConnections
- Inherits:
-
Object
- Object
- ZAWS::AWSCLI::Commands::EC2::DescribeVpcPeeringConnections
- Defined in:
- lib/zaws/external/awscli/commands/ec2/describe_vpc_peering_connections.rb
Instance Method Summary collapse
- #execute(region, view, filters, verbose = nil, profile = nil) ⇒ Object
-
#initialize(shellout, awscli) ⇒ DescribeVpcPeeringConnections
constructor
A new instance of DescribeVpcPeeringConnections.
Constructor Details
#initialize(shellout, awscli) ⇒ DescribeVpcPeeringConnections
Returns a new instance of DescribeVpcPeeringConnections.
7 8 9 10 |
# File 'lib/zaws/external/awscli/commands/ec2/describe_vpc_peering_connections.rb', line 7 def initialize(shellout, awscli) @shellout=shellout @awscli=awscli end |
Instance Method Details
#execute(region, view, filters, verbose = nil, profile = nil) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/zaws/external/awscli/commands/ec2/describe_vpc_peering_connections.rb', line 12 def execute(region, view, filters, verbose=nil,profile=nil) comline="aws --output #{view} --region #{region} ec2 describe-vpc-peering-connections" comline=comline + " --profile #{profile}" unless profile.nil? comline = ZAWS::Helper::Filter.filter(comline,filters) if filters.length > 0 @awscli.data_ec2.vpc.load(comline, @shellout.cli(comline, verbose),verbose) end |