class ZAWS::External::AWSCLI::Commands::EC2::DescribeImages

Public Class Methods

new(shellout=nil, awscli=nil) click to toggle source
# File lib/zaws/external/awscli/commands/ec2/describe_images.rb, line 8
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_images.rb, line 15
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_images.rb, line 25
def clear_settings
  @aws=nil
  @filter=nil
  @owner=nil
  @image_ids=nil
  self
end
filter() click to toggle source
# File lib/zaws/external/awscli/commands/ec2/describe_images.rb, line 20
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_images.rb, line 43
def get_command
  command = "ec2 describe-images"
  command = "#{command} --owner #{@owner}" if @owner
  command = "#{command} --image-ids #{@image_ids}" if @image_ids
  command = "#{command} #{@filter.get_command}" if @filter
  return command
end
image_ids(id) click to toggle source
# File lib/zaws/external/awscli/commands/ec2/describe_images.rb, line 38
def image_ids(id)
  @image_ids=id
  self
end
owner(owner) click to toggle source
# File lib/zaws/external/awscli/commands/ec2/describe_images.rb, line 33
def owner(owner)
  @owner=owner
  self
end