Class: SnapDeploy::Provider::Heroku::API::SSLEndpoint
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::SSLEndpoint
- Defined in:
- lib/snap_deploy/provider/heroku/api.rb
Overview
[SSL Endpoint](devcenter.heroku.com/articles/ssl-endpoint) is a public address serving custom SSL cert for HTTPS traffic to a Heroku app. Note that an app must have the ssl:endpoint addon installed before it can provision an SSL Endpoint using these APIs.
Instance Method Summary collapse
-
#create(app_id_or_app_name, body) ⇒ Object
Create a new SSL endpoint.
-
#delete(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) ⇒ Object
Delete existing SSL endpoint.
-
#info(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) ⇒ Object
Info for existing SSL endpoint.
-
#initialize(client) ⇒ SSLEndpoint
constructor
A new instance of SSLEndpoint.
-
#list(app_id_or_app_name) ⇒ Object
List existing SSL endpoints.
-
#update(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name, body) ⇒ Object
Update an existing SSL endpoint.
Constructor Details
#initialize(client) ⇒ SSLEndpoint
Returns a new instance of SSLEndpoint.
1465 1466 1467 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1465 def initialize(client) @client = client end |
Instance Method Details
#create(app_id_or_app_name, body) ⇒ Object
Create a new SSL endpoint.
1473 1474 1475 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1473 def create(app_id_or_app_name, body) @client.ssl_endpoint.create(app_id_or_app_name, body) end |
#delete(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) ⇒ Object
Delete existing SSL endpoint.
1481 1482 1483 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1481 def delete(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) @client.ssl_endpoint.delete(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) end |
#info(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) ⇒ Object
Info for existing SSL endpoint.
1489 1490 1491 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1489 def info(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) @client.ssl_endpoint.info(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name) end |
#list(app_id_or_app_name) ⇒ Object
List existing SSL endpoints.
1496 1497 1498 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1496 def list(app_id_or_app_name) @client.ssl_endpoint.list(app_id_or_app_name) end |
#update(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name, body) ⇒ Object
Update an existing SSL endpoint.
1505 1506 1507 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1505 def update(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name, body) @client.ssl_endpoint.update(app_id_or_app_name, ssl_endpoint_id_or_ssl_endpoint_name, body) end |