class AwsUtils::Route53AddResourceRecord
Public Class Methods
new()
click to toggle source
# File lib/awsutils/r53addrr.rb, line 20 def initialize @opts = parse_opts end
Public Instance Methods
connection()
click to toggle source
# File lib/awsutils/r53addrr.rb, line 7 def connection @connection ||= Fog::DNS::AWS.new end
parse_opts()
click to toggle source
# File lib/awsutils/r53addrr.rb, line 11 def parse_opts Optimist.options do opt :name, 'The name', short: 'n', type: String, required: true opt :type, 'Record type (e.g. CNAME or A)', short: 'T', type: String, required: true opt :ttl, 'Time-to-live', short: 't', type: String, default: '300' opt :value, 'Record Value', short: 'v', type: String, required: true end end