Class: SnapDeploy::Provider::Heroku::API::Domain
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::Domain
- Defined in:
- lib/snap_deploy/provider/heroku/api.rb
Overview
Domains define what web routes should be routed to an app on Heroku.
Instance Method Summary collapse
-
#create(app_id_or_app_name, body) ⇒ Object
Create a new domain.
-
#delete(app_id_or_app_name, domain_id_or_domain_hostname) ⇒ Object
Delete an existing domain.
-
#info(app_id_or_app_name, domain_id_or_domain_hostname) ⇒ Object
Info for existing domain.
-
#initialize(client) ⇒ Domain
constructor
A new instance of Domain.
-
#list(app_id_or_app_name) ⇒ Object
List existing domains.
Constructor Details
#initialize(client) ⇒ Domain
Returns a new instance of Domain.
803 804 805 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 803 def initialize(client) @client = client end |
Instance Method Details
#create(app_id_or_app_name, body) ⇒ Object
Create a new domain.
811 812 813 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 811 def create(app_id_or_app_name, body) @client.domain.create(app_id_or_app_name, body) end |
#delete(app_id_or_app_name, domain_id_or_domain_hostname) ⇒ Object
Delete an existing domain
819 820 821 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 819 def delete(app_id_or_app_name, domain_id_or_domain_hostname) @client.domain.delete(app_id_or_app_name, domain_id_or_domain_hostname) end |
#info(app_id_or_app_name, domain_id_or_domain_hostname) ⇒ Object
Info for existing domain.
827 828 829 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 827 def info(app_id_or_app_name, domain_id_or_domain_hostname) @client.domain.info(app_id_or_app_name, domain_id_or_domain_hostname) end |
#list(app_id_or_app_name) ⇒ Object
List existing domains.
834 835 836 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 834 def list(app_id_or_app_name) @client.domain.list(app_id_or_app_name) end |