class ZAWS::External::AWSCLI::Commands::Route53::ListResourceRecordSets

Public Class Methods

new(shellout=nil, awscli=nil) click to toggle source
# File lib/zaws/external/awscli/commands/route53/list_resource_record_sets.rb, line 7
def initialize(shellout=nil, awscli=nil)
  @shellout=shellout
  @awscli=awscli
  clear_settings
  self
end

Public Instance Methods

aws() click to toggle source
# File lib/zaws/external/awscli/commands/route53/list_resource_record_sets.rb, line 30
def aws
  @aws ||= ZAWS::External::AWSCLI::Commands::AWS.new(self)
  @aws
end
clear_settings() click to toggle source
# File lib/zaws/external/awscli/commands/route53/list_resource_record_sets.rb, line 14
def clear_settings
  @aws=nil
  @hosted_zone_id=nil
end
get_command() click to toggle source
# File lib/zaws/external/awscli/commands/route53/list_resource_record_sets.rb, line 24
def get_command
  command = "route53 list-resource-record-sets"
  command = "#{command} --hosted-zone-id #{@hosted_zone_id}" if @hosted_zone_id
  return command
end
hosted_zone_id(id) click to toggle source
# File lib/zaws/external/awscli/commands/route53/list_resource_record_sets.rb, line 19
def hosted_zone_id(id)
  @hosted_zone_id=id
  self
end