lib/fog/zerigo/requests/dns/create_host.rb in fog-1.22.0 vs lib/fog/zerigo/requests/dns/create_host.rb in fog-1.22.1

- old
+ new

@@ -1,10 +1,9 @@ module Fog module DNS class Zerigo class Real - require 'fog/zerigo/parsers/dns/create_host' # Create a new host in the specified zone # # ==== Parameters @@ -30,11 +29,10 @@ # * 'ttl'<~Integer> # * 'updated-at'<~String> # * 'zone-id'<~String> # * 'status'<~Integer> - 201 if successful def create_host(zone_id, host_type, data, options = {}) - optional_tags= '' options.each { |option, value| case option when :hostname optional_tags+= "<hostname>#{value}</hostname>" @@ -53,10 +51,9 @@ :method => 'POST', :parser => Fog::Parsers::DNS::Zerigo::CreateHost.new, :path => "/api/1.1/zones/#{zone_id}/hosts.xml" ) end - end class Mock # :nodoc:all def valid_host_types %w[A AAAA CNAME GEO MX NS SPF SRV TXT URL PTR CNAME NS]