Class: PlatformAPI::App

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

An app represents the program that you would like to deploy and run on Heroku.

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ App

Returns a new instance of App.



1917
1918
1919
# File 'lib/platform-api/client.rb', line 1917

def initialize(client)
  @client = client
end

Instance Method Details

#create(body = {}) ⇒ Object



1929
1930
1931
# File 'lib/platform-api/client.rb', line 1929

def create(body = {})
  @client.app.create(body)
end

#delete(app_id_or_app_name) ⇒ Object



1941
1942
1943
# File 'lib/platform-api/client.rb', line 1941

def delete(app_id_or_app_name)
  @client.app.delete(app_id_or_app_name)
end

#disable_acm(app_id_or_app_name) ⇒ Object



2010
2011
2012
# File 'lib/platform-api/client.rb', line 2010

def disable_acm(app_id_or_app_name)
  @client.app.disable_acm(app_id_or_app_name)
end

#enable_acm(app_id_or_app_name) ⇒ Object



1998
1999
2000
# File 'lib/platform-api/client.rb', line 1998

def enable_acm(app_id_or_app_name)
  @client.app.enable_acm(app_id_or_app_name)
end

#info(app_id_or_app_name) ⇒ Object



1953
1954
1955
# File 'lib/platform-api/client.rb', line 1953

def info(app_id_or_app_name)
  @client.app.info(app_id_or_app_name)
end

#listObject

List existing apps.



1960
1961
1962
# File 'lib/platform-api/client.rb', line 1960

def list()
  @client.app.list()
end

#list_owned_and_collaborated(account_email_or_account_id_or_account_self) ⇒ Object



1972
1973
1974
# File 'lib/platform-api/client.rb', line 1972

def list_owned_and_collaborated()
  @client.app.list_owned_and_collaborated()
end

#refresh_acm(app_id_or_app_name) ⇒ Object



2022
2023
2024
# File 'lib/platform-api/client.rb', line 2022

def refresh_acm(app_id_or_app_name)
  @client.app.refresh_acm(app_id_or_app_name)
end

#update(app_id_or_app_name, body = {}) ⇒ Object



1986
1987
1988
# File 'lib/platform-api/client.rb', line 1986

def update(app_id_or_app_name, body = {})
  @client.app.update(app_id_or_app_name, body)
end