Module: Myra::DomainHandler
- Included in:
- DnsRecords
- Defined in:
- lib/myra/actions/shared/domain_handler.rb
Instance Method Summary collapse
Instance Method Details
#normalize_domain_name(record, domain) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/myra/actions/shared/domain_handler.rb', line 8 def normalize_domain_name(record, domain) return record if record.name.nil? return record if record.name.include?(domain.name) record.name = "#{record.name}.#{domain.name}" record end |
#path(domain) ⇒ Object
4 5 6 |
# File 'lib/myra/actions/shared/domain_handler.rb', line 4 def path(domain) const_get('PATH').gsub('{domain}', domain.name) end |