Class: Fog::AWS::DNS::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/aws/dns.rb,
lib/fog/aws/requests/dns/get_change.rb,
lib/fog/aws/requests/dns/get_hosted_zone.rb,
lib/fog/aws/requests/dns/list_hosted_zones.rb,
lib/fog/aws/requests/dns/create_hosted_zone.rb,
lib/fog/aws/requests/dns/delete_hosted_zone.rb,
lib/fog/aws/requests/dns/list_resource_record_sets.rb,
lib/fog/aws/requests/dns/change_resource_record_sets.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Mock

Returns a new instance of Mock.



41
42
43
44
45
# File 'lib/fog/aws/dns.rb', line 41

def initialize(options={})
  require 'mime/types'
  @aws_access_key_id = options[:aws_access_key_id]
  @data = self.class.data[options[:region]][@aws_access_key_id]
end

Class Method Details

.dataObject



25
26
27
28
29
30
31
32
33
# File 'lib/fog/aws/dns.rb', line 25

def self.data
  @data ||= Hash.new do |hash, region|
    hash[region] = Hash.new do |region_hash, key|
      region_hash[key] = {
        :buckets => {}
      }
    end
  end
end

.reset_data(keys = data.keys) ⇒ Object



35
36
37
38
39
# File 'lib/fog/aws/dns.rb', line 35

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

Instance Method Details

#change_resource_record_sets(zone_id, change_batch, options = {}) ⇒ Object



83
84
85
# File 'lib/fog/aws/requests/dns/change_resource_record_sets.rb', line 83

def change_resource_record_sets(zone_id, change_batch, options = {})
  Fog::Mock.not_implemented
end

#create_hosted_zone(name, options = {}) ⇒ Object



60
61
62
# File 'lib/fog/aws/requests/dns/create_hosted_zone.rb', line 60

def create_hosted_zone(name, options = {})
  Fog::Mock.not_implemented
end

#delete_hosted_zone(zone_id) ⇒ Object



41
42
43
# File 'lib/fog/aws/requests/dns/delete_hosted_zone.rb', line 41

def delete_hosted_zone(zone_id)
  Fog::Mock.not_implemented
end

#get_change(change_id) ⇒ Object



40
41
42
# File 'lib/fog/aws/requests/dns/get_change.rb', line 40

def get_change(change_id)
  Fog::Mock.not_implemented
end

#get_hosted_zone(zone_id) ⇒ Object



43
44
45
# File 'lib/fog/aws/requests/dns/get_hosted_zone.rb', line 43

def get_hosted_zone(zone_id)
  Fog::Mock.not_implemented
end

#list_hosted_zones(options = {}) ⇒ Object



56
57
58
# File 'lib/fog/aws/requests/dns/list_hosted_zones.rb', line 56

def list_hosted_zones(options = {})
  Fog::Mock.not_implemented
end

#list_resource_record_sets(zone_id, options = {}) ⇒ Object



61
62
63
# File 'lib/fog/aws/requests/dns/list_resource_record_sets.rb', line 61

def list_resource_record_sets(zone_id, options = {})
  Fog::Mock.not_implemented
end

#signature(params) ⇒ Object



47
48
49
# File 'lib/fog/aws/dns.rb', line 47

def signature(params)
  "foo"
end