Sha256: f6d41a8f4dd399e729064a07c299745b3ffa9defcda1b9f27803ac57c35dc797

Contents?: true

Size: 662 Bytes

Versions: 104

Compression:

Stored size: 662 Bytes

Contents

module Fog
  module DNS
    class Rackspace
      class Real
        def remove_domain(domain_id, options={})

          validate_path_fragment :domain_id, domain_id

          path = "domains/#{domain_id}"
          query_data = {}

          if options.has_key? :delete_subdomains
            query_data['deleteSubdomains'] = options[:delete_subdomains].to_s
          end

          if !query_data.empty?
            path = path + '?' + array_to_query_string(query_data)
          end

          request(
            :expects  => [202, 204],
            :method   => 'DELETE',
            :path     => path
          )
        end
      end
    end
  end
end

Version data entries

104 entries across 104 versions & 18 rubygems

Version Path
fog-1.10.1 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-parser-fix-1.6.1 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-test-again-1.6.0 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-test-me-1.10.0 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-parser-fix-1.6.0 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-1.10.0 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-1.9.0 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/rackspace/requests/dns/remove_domain.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/rackspace/requests/dns/remove_domain.rb
fog-sgonyea-1.8.1 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-1.8.0 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-1.7.0 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-1.6.0 lib/fog/rackspace/requests/dns/remove_domain.rb
fog-1.5.0 lib/fog/rackspace/requests/dns/remove_domain.rb
rackspace-fog-1.4.2 lib/rackspace-fog/rackspace/requests/dns/remove_domain.rb
fog-1.4.0 lib/fog/rackspace/requests/dns/remove_domain.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/dns/remove_domain.rb