Class: CloudInteractor::CloudProvider
- Inherits:
-
Object
- Object
- CloudInteractor::CloudProvider
- Defined in:
- lib/cloud_interactor/cloud_provider.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CloudProvider
constructor
A new instance of CloudProvider.
-
#parse_provider_domain_record_name(args) ⇒ Object
args will always be a hash.
Constructor Details
#initialize(options = {}) ⇒ CloudProvider
Returns a new instance of CloudProvider.
3 4 5 |
# File 'lib/cloud_interactor/cloud_provider.rb', line 3 def initialize ={} @options = end |
Instance Method Details
#parse_provider_domain_record_name(args) ⇒ Object
args will always be a hash
8 9 10 11 12 13 14 15 16 17 |
# File 'lib/cloud_interactor/cloud_provider.rb', line 8 def parse_provider_domain_record_name args case @options['route_dns_changes_via'] when 'rackspace' "#{ args['subdomain'] }.#{ args['domain'] }" when 'dnsimple' args['subdomain'] else "#{ args['subdomain'] }.#{ args['domain'] }" end end |