Class: SnapDeploy::Provider::Heroku::API::Source

Inherits:
Object
  • Object
show all
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

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.

Parameters:

  • app_id_or_app_name:

    unique identifier of app or unique name of app

  • body:

    the object to pass as the request payload



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