Class: SnapDeploy::Provider::Heroku::API::Source
- Inherits:
-
Object
- Object
- SnapDeploy::Provider::Heroku::API::Source
- Defined in:
- lib/snap_deploy/provider/heroku/api.rb
Overview
A source is a location for uploading and downloading an application’s source code.
Instance Method Summary collapse
-
#create(app_id_or_app_name, body) ⇒ Object
Create URLs for uploading and downloading source.
-
#initialize(client) ⇒ Source
constructor
A new instance of Source.
Constructor Details
#initialize(client) ⇒ Source
Returns a new instance of Source.
1450 1451 1452 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1450 def initialize(client) @client = client end |
Instance Method Details
#create(app_id_or_app_name, body) ⇒ Object
Create URLs for uploading and downloading source.
1458 1459 1460 |
# File 'lib/snap_deploy/provider/heroku/api.rb', line 1458 def create(app_id_or_app_name, body) @client.source.create(app_id_or_app_name, body) end |