Sha256: bfd790ade201005bfe560b43fff725b3f7d90c4c107d25c4359b6eef99820f0e
Contents?: true
Size: 867 Bytes
Versions: 79
Compression:
Stored size: 867 Bytes
Contents
module Fog module DNS class Rackspace class Real def modify_record(domain_id, record_id, options={}) validate_path_fragment :domain_id, domain_id validate_path_fragment :record_id, record_id path = "domains/#{domain_id}/records/#{record_id}" data = {} if options.has_key? :ttl data['ttl'] = options[:ttl] end if options.has_key? :name data['name'] = options[:name] end if options.has_key? :data data['data'] = options[:data] end if data.empty? return end request( :expects => [202, 204], :method => 'PUT', :path => path, :body => Fog::JSON.encode(data) ) end end end end end
Version data entries
79 entries across 79 versions & 12 rubygems