Module: Heroku::Plugins::Domainr
- Defined in:
- lib/heroku/plugins/domainr/config.rb,
lib/heroku/plugins/heroku_domainr.rb,
lib/heroku/plugins/domainr/version.rb
Defined Under Namespace
Modules: Config
Constant Summary collapse
- VERSION =
"0.1.1"
- @@heroku_client =
nil
Class Method Summary collapse
Instance Method Summary collapse
- #domains_add(domain) ⇒ Object
- #domains_clear ⇒ Object
- #domains_remove(domain) ⇒ Object
- #heroku_client ⇒ Object
Class Method Details
Instance Method Details
#domains_add(domain) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/heroku/plugins/heroku_domainr.rb', line 9 def domains_add(domain) unless config_not_defined? heroku_client.add_domain(Heroku::Plugins::Domainr::Config.heroku_app, domain) else log("Skipping domain #{domain} creation because config is not defined") end end |
#domains_clear ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/heroku/plugins/heroku_domainr.rb', line 25 def domains_clear() unless config_not_defined? heroku_client.remove_domains(Heroku::Plugins::Domainr::Config.heroku_app) else log("Skipping domain clearing because config is not defined") end end |
#domains_remove(domain) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/heroku/plugins/heroku_domainr.rb', line 17 def domains_remove(domain) unless config_not_defined? heroku_client.remove_domain(Heroku::Plugins::Domainr::Config.heroku_app, domain) else log("Skipping domain #{domain} removal because config is not defined") end end |