class ZAWS::Command::Hosted_Zone

Attributes

aws[RW]
out[RW]
print_exit_code[RW]

Public Class Methods

new(*args) click to toggle source
Calls superclass method
# File lib/zaws/command/hosted_zone.rb, line 12
def initialize(*args)
  super
  shellout=ZAWS::Helper::Shell.new
  awscli = ZAWS::AWSCLI.new(shellout)
  @aws = ZAWS::AWS.new(shellout, awscli)
  @out = $stdout
  @print_exit_code = false
end

Public Instance Methods

view() click to toggle source
# File lib/zaws/command/hosted_zone.rb, line 24
def view
  @aws.route53.hosted_zone.view(options[:viewtype], @out, (options[:verbose] ? @out : nil))
end
view_records(zonename) click to toggle source
# File lib/zaws/command/hosted_zone.rb, line 31
def view_records(zonename)
  @aws.route53.hosted_zone.view_records(options[:viewtype], @out, (options[:verbose] ? @out : nil), zonename)
end