Class: Fog::AWS::DNS::Mock
- Inherits:
-
Object
- Object
- Fog::AWS::DNS::Mock
- Defined in:
- lib/fog/dns/aws.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Mock
constructor
A new instance of Mock.
- #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
#signature(params) ⇒ Object
55 56 57 |
# File 'lib/fog/dns/aws.rb', line 55 def signature(params) "foo" end |