Class: ZAWS::External::AWSCLI::Commands::Route53::ListResourceRecordSets

Inherits:
Object
  • Object
show all
Defined in:
lib/zaws/external/awscli/commands/route53/list_resource_record_sets.rb

Instance Method Summary collapse

Constructor Details

#initialize(shellout = nil, awscli = nil) ⇒ ListResourceRecordSets

Returns a new instance of ListResourceRecordSets.



7
8
9
10
11
12
# 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

Instance Method Details

#awsObject



30
31
32
33
# 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_settingsObject



14
15
16
17
# 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_commandObject



24
25
26
27
28
# 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) ⇒ Object



19
20
21
22
# 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