Sha256: 92a4a644227e0d5429465f1ba922c96c647ae6dcd9fc51113814e2d3bdc59512
Contents?: true
Size: 799 Bytes
Versions: 25
Compression:
Stored size: 799 Bytes
Contents
module Fog module DNS class Rackspace class Real def modify_domain(domain_id, options={}) validate_path_fragment :domain_id, domain_id path = "domains/#{domain_id}" data = {} if options.has_key? :ttl data['ttl'] = options[:ttl] end if options.has_key? :comment data['comment'] = options[:comment] end if options.has_key? :email data['emailAddress'] = options[:email] end if data.empty? return end request( :expects => [202, 204], :method => 'PUT', :path => path, :body => MultiJson.encode(data) ) end end end end end
Version data entries
25 entries across 25 versions & 7 rubygems