class ZAWS::External::AWSCLI::Commands::EC2::DescribeSecurityGroups
Public Class Methods
new(shellout=nil, awscli=nil)
click to toggle source
Calls superclass method
ZAWS::External::AWSCLI::Data::EC2::SecurityGroup::new
# File lib/zaws/external/awscli/commands/ec2/describe_security_groups.rb, line 11 def initialize(shellout=nil, awscli=nil) super(shellout, awscli) @shellout=shellout @awscli=awscli clear_settings end
Public Instance Methods
aws()
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/describe_security_groups.rb, line 23 def aws @aws ||= ZAWS::External::AWSCLI::Commands::AWS.new(self) @aws end
clear_settings()
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/describe_security_groups.rb, line 33 def clear_settings @aws=nil @filter=nil end
execute(verbose=nil)
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/describe_security_groups.rb, line 18 def execute(verbose=nil) comline=@aws.get_command @shellout.cli(comline, verbose) end
filter()
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/describe_security_groups.rb, line 28 def filter @filter ||= ZAWS::External::AWSCLI::Commands::EC2::Filter.new() @filter end
get_command()
click to toggle source
# File lib/zaws/external/awscli/commands/ec2/describe_security_groups.rb, line 38 def get_command command = "ec2 describe-security-groups" command = "#{command} #{@filter.get_command}" if @filter return command end