Class: ZAWS::External::AWSCLI::Commands::EC2::DescribeAddresses
- Inherits:
-
Object
- Object
- ZAWS::External::AWSCLI::Commands::EC2::DescribeAddresses
- Defined in:
- lib/zaws/external/awscli/commands/ec2/describe_addresses.rb
Instance Method Summary collapse
- #aws ⇒ Object
- #clear_settings ⇒ Object
- #filter ⇒ Object
- #get_command ⇒ Object
-
#initialize(shellout = nil, awscli = nil) ⇒ DescribeAddresses
constructor
A new instance of DescribeAddresses.
Constructor Details
#initialize(shellout = nil, awscli = nil) ⇒ DescribeAddresses
Returns a new instance of DescribeAddresses.
7 8 9 10 11 12 |
# File 'lib/zaws/external/awscli/commands/ec2/describe_addresses.rb', line 7 def initialize(shellout=nil, awscli=nil) @shellout=shellout @awscli=awscli clear_settings self end |
Instance Method Details
#aws ⇒ Object
31 32 33 34 |
# File 'lib/zaws/external/awscli/commands/ec2/describe_addresses.rb', line 31 def aws @aws ||= ZAWS::External::AWSCLI::Commands::AWS.new(self) @aws end |
#clear_settings ⇒ Object
14 15 16 17 18 |
# File 'lib/zaws/external/awscli/commands/ec2/describe_addresses.rb', line 14 def clear_settings() @filter=nil @aws self end |
#filter ⇒ Object
20 21 22 23 |
# File 'lib/zaws/external/awscli/commands/ec2/describe_addresses.rb', line 20 def filter @filter ||= ZAWS::External::AWSCLI::Commands::EC2::Filter.new() @filter end |
#get_command ⇒ Object
25 26 27 28 29 |
# File 'lib/zaws/external/awscli/commands/ec2/describe_addresses.rb', line 25 def get_command command = "ec2 describe-addresses" command = "#{command} #{@filter.get_command}" if @filter return command end |