Class: Fog::AWS::DNS::Mock
- Inherits:
-
Object
- Object
- Fog::AWS::DNS::Mock
- Defined in:
- lib/fog/dns/aws.rb,
lib/fog/dns/requests/aws/get_change.rb,
lib/fog/dns/requests/aws/get_hosted_zone.rb,
lib/fog/dns/requests/aws/list_hosted_zones.rb,
lib/fog/dns/requests/aws/create_hosted_zone.rb,
lib/fog/dns/requests/aws/delete_hosted_zone.rb,
lib/fog/dns/requests/aws/list_resource_record_sets.rb,
lib/fog/dns/requests/aws/change_resource_record_sets.rb
Class Method Summary collapse
Instance Method Summary collapse
- #change_resource_record_sets(zone_id, change_batch, options = {}) ⇒ Object
- #create_hosted_zone(name, options = {}) ⇒ Object
- #delete_hosted_zone(zone_id) ⇒ Object
- #get_change(change_id) ⇒ Object
- #get_hosted_zone(zone_id) ⇒ Object
-
#initialize(options = {}) ⇒ Mock
constructor
A new instance of Mock.
- #list_hosted_zones(options = {}) ⇒ Object
- #list_resource_record_sets(zone_id, options = {}) ⇒ Object
- #signature(params) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Mock
Returns a new instance of Mock.
42 43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/fog/dns/aws.rb', line 42 def initialize(={}) unless .delete(:provider) location = caller.first warning = "[yellow][WARN] Fog::AWS::DNS.new is deprecated, use Fog::DNS.new(:provider => 'AWS') instead[/]" warning << " [light_black](" << location << ")[/] " Formatador.display_line(warning) end require 'mime/types' @aws_access_key_id = [:aws_access_key_id] @data = self.class.data[[:region]][@aws_access_key_id] end |
Class Method Details
.data ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/fog/dns/aws.rb', line 26 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
36 37 38 39 40 |
# File 'lib/fog/dns/aws.rb', line 36 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/dns/requests/aws/change_resource_record_sets.rb', line 83 def change_resource_record_sets(zone_id, change_batch, = {}) Fog::Mock.not_implemented end |
#create_hosted_zone(name, options = {}) ⇒ Object
60 61 62 |
# File 'lib/fog/dns/requests/aws/create_hosted_zone.rb', line 60 def create_hosted_zone(name, = {}) Fog::Mock.not_implemented end |
#delete_hosted_zone(zone_id) ⇒ Object
41 42 43 |
# File 'lib/fog/dns/requests/aws/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/dns/requests/aws/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/dns/requests/aws/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/dns/requests/aws/list_hosted_zones.rb', line 56 def list_hosted_zones( = {}) Fog::Mock.not_implemented end |
#list_resource_record_sets(zone_id, options = {}) ⇒ Object
61 62 63 |
# File 'lib/fog/dns/requests/aws/list_resource_record_sets.rb', line 61 def list_resource_record_sets(zone_id, = {}) Fog::Mock.not_implemented end |
#signature(params) ⇒ Object
55 56 57 |
# File 'lib/fog/dns/aws.rb', line 55 def signature(params) "foo" end |