Class: Fog::Zerigo::DNS::Mock

Inherits:
Object
  • Object
show all
Defined in:
lib/fog/dns/zerigo.rb,
lib/fog/dns/requests/zerigo/get_host.rb,
lib/fog/dns/requests/zerigo/get_zone.rb,
lib/fog/dns/requests/zerigo/find_hosts.rb,
lib/fog/dns/requests/zerigo/list_hosts.rb,
lib/fog/dns/requests/zerigo/list_zones.rb,
lib/fog/dns/requests/zerigo/count_hosts.rb,
lib/fog/dns/requests/zerigo/count_zones.rb,
lib/fog/dns/requests/zerigo/create_host.rb,
lib/fog/dns/requests/zerigo/create_zone.rb,
lib/fog/dns/requests/zerigo/delete_host.rb,
lib/fog/dns/requests/zerigo/delete_zone.rb,
lib/fog/dns/requests/zerigo/update_host.rb,
lib/fog/dns/requests/zerigo/update_zone.rb,
lib/fog/dns/requests/zerigo/get_zone_stats.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Mock

Returns a new instance of Mock.



45
46
47
48
49
50
51
52
53
54
55
56
57
# File 'lib/fog/dns/zerigo.rb', line 45

def initialize(options={})
  unless options.delete(:provider)
    location = caller.first
    warning = "[yellow][WARN] Fog::Zerigo::DNS.new is deprecated, use Fog::DNS.new(:provider => 'Zerigo') instead[/]"
    warning << " [light_black](" << location << ")[/] "
    Formatador.display_line(warning)
  end

  @zerigo_email = options[:zerigo_email]
  @zerigo_token = options[:zerigo_token]
  @data = self.class.data[@zerigo_email]
  @data = self.class.data[@zerigo_password]
end

Class Method Details

.dataObject



33
34
35
36
37
# File 'lib/fog/dns/zerigo.rb', line 33

def self.data
  @data ||= Hash.new do |hash, key|
    hash[key] = {}
  end
end

.reset_data(keys = data.keys) ⇒ Object



39
40
41
42
43
# File 'lib/fog/dns/zerigo.rb', line 39

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

Instance Method Details

#count_hosts(zone_id) ⇒ Object



29
30
31
# File 'lib/fog/dns/requests/zerigo/count_hosts.rb', line 29

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

#count_zonesObject



29
30
31
# File 'lib/fog/dns/requests/zerigo/count_zones.rb', line 29

def count_zones()
  Fog::Mock.not_implemented
end

#create_host(zone_id, host_type, data, options = {}) ⇒ Object



63
64
65
# File 'lib/fog/dns/requests/zerigo/create_host.rb', line 63

def create_host( zone_id, host_type, data, options = {})
  Fog::Mock.not_implemented
end

#create_zone(domain, default_ttl, ns_type, options = {}) ⇒ Object



90
91
92
# File 'lib/fog/dns/requests/zerigo/create_zone.rb', line 90

def create_zone(domain, default_ttl, ns_type, options = {})
  Fog::Mock.not_implemented
end

#delete_host(host_id) ⇒ Object



25
26
27
# File 'lib/fog/dns/requests/zerigo/delete_host.rb', line 25

def delete_host(host_id)
  Fog::Mock.not_implemented
end

#delete_zone(zone_id) ⇒ Object



26
27
28
# File 'lib/fog/dns/requests/zerigo/delete_zone.rb', line 26

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

#find_hosts(fqdn, zone_id = nil) ⇒ Object



56
57
58
# File 'lib/fog/dns/requests/zerigo/find_hosts.rb', line 56

def find_hosts( fqdn, zone_id = nil)
  Fog::Mock.not_implemented
end

#get_host(host_id) ⇒ Object



40
41
42
# File 'lib/fog/dns/requests/zerigo/get_host.rb', line 40

def get_host( host_id)
  Fog::Mock.not_implemented
end

#get_zone(zone) ⇒ Object



50
51
52
# File 'lib/fog/dns/requests/zerigo/get_zone.rb', line 50

def get_zone(zone)
  Fog::Mock.not_implemented
end

#get_zone_stats(zone_id) ⇒ Object



37
38
39
# File 'lib/fog/dns/requests/zerigo/get_zone_stats.rb', line 37

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

#list_hosts(zone_id) ⇒ Object



41
42
43
# File 'lib/fog/dns/requests/zerigo/list_hosts.rb', line 41

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

#list_zonesObject



46
47
48
# File 'lib/fog/dns/requests/zerigo/list_zones.rb', line 46

def list_zones
  Fog::Mock.not_implemented
end

#update_host(host_id, options = {}) ⇒ Object



53
54
55
# File 'lib/fog/dns/requests/zerigo/update_host.rb', line 53

def update_host( host_id, options = {})
  Fog::Mock.not_implemented
end

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



71
72
73
# File 'lib/fog/dns/requests/zerigo/update_zone.rb', line 71

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