Sha256: bb1440945c6207d737f30f61c5643d12898d877bef0121b4b2ae70c8e3f55ae4

Contents?: true

Size: 1.8 KB

Versions: 15

Compression:

Stored size: 1.8 KB

Contents

require 'fog/storm_on_demand/core'
require 'fog/storm_on_demand/shared'

module Fog
  module DNS
    class StormOnDemand < Fog::Service
      API_URL = 'https://api.stormondemand.com'
      API_VERSION = 'v1'

      requires :storm_on_demand_username, :storm_on_demand_password
      recognizes :storm_on_demand_auth_url

      model_path 'fog/storm_on_demand/models/dns'
      model       :domain
      collection  :domains
      model       :record
      collection  :records
      model       :reverse
      collection  :reverses
      model       :zone
      collection  :zones

      request_path 'fog/storm_on_demand/requests/dns'
      request :list_domains
      request :renew_domain

      request :create_record
      request :delete_record
      request :get_record
      request :list_records
      request :update_record
      request :create_record_region
      request :delete_record_region
      request :update_record_region

      request :delete_reverse
      request :update_reverse

      request :create_zone
      request :check_zone_delegation
      request :delete_zone
      request :get_zone
      request :list_zones
      request :update_zone

      class Mock
        def self.data
          @data ||= Hash.new
        end

        def self.reset
          @data = nil
        end

        def self.reset_data(keys=data.keys)
          for key in [*keys]
            data.delete(key)
          end
        end

        def initialize(options={})
          @storm_on_demand_username = options[:storm_on_demand_username]
        end

        def data
          self.class.data[@storm_on_demand_username]
        end

        def reset_data
          self.class.data.delete(@storm_on_demand_username)
        end
      end

      class Real
        include Fog::StormOnDemand::RealShared
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/storm_on_demand/dns.rb
fog-1.25.0 lib/fog/storm_on_demand/dns.rb
nsidc-fog-1.24.1 lib/fog/storm_on_demand/dns.rb
fog-1.24.0 lib/fog/storm_on_demand/dns.rb
ns-fog-1.22.11 lib/fog/storm_on_demand/dns.rb
ns-fog-1.22.10 lib/fog/storm_on_demand/dns.rb
ns-fog-1.22.9 lib/fog/storm_on_demand/dns.rb
ns-fog-1.22.8 lib/fog/storm_on_demand/dns.rb
ns-fog-1.22.7 lib/fog/storm_on_demand/dns.rb
ns-fog-1.22.6 lib/fog/storm_on_demand/dns.rb
fog-1.23.0 lib/fog/storm_on_demand/dns.rb
ns-fog-1.22.4 lib/fog/storm_on_demand/dns.rb
ns-fog-1.22.3 lib/fog/storm_on_demand/dns.rb
ns-fog-1.22.2 lib/fog/storm_on_demand/dns.rb
fog-1.22.1 lib/fog/storm_on_demand/dns.rb