Class: PlatformAPI::Source

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.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.



2885
2886
2887
# File 'lib/platform-api/client.rb', line 2885

def initialize(client)
  @client = client
end

Instance Method Details

#createObject

Create URLs for uploading and downloading source.



2890
2891
2892
# File 'lib/platform-api/client.rb', line 2890

def create()
  @client.source.create()
end

#create_deprecated(app_id_or_app_name) ⇒ Object

Create URLs for uploading and downloading source. Deprecated in favor of POST /sources

Parameters:

  • app_id_or_app_name:

    unique identifier of app or unique name of app



2897
2898
2899
# File 'lib/platform-api/client.rb', line 2897

def create_deprecated(app_id_or_app_name)
  @client.source.create_deprecated(app_id_or_app_name)
end