class PlatformAPI::TeamApp

A team app encapsulates the team specific functionality of Heroku apps.

Public Class Methods

new(client) click to toggle source
# File lib/platform-api/client.rb, line 3182
def initialize(client)
  @client = client
end

Public Instance Methods

create(body = {}) click to toggle source

Create a new app in the specified team, in the default team if unspecified, or in personal account, if default team is not set.

@param body: the object to pass as the request payload

# File lib/platform-api/client.rb, line 3189
def create(body = {})
  @client.team_app.create(body)
end
info(app_name) click to toggle source

Info for a team app.

@param app_name: unique name of app

# File lib/platform-api/client.rb, line 3196
def info(app_name)
  @client.team_app.info(app_name)
end
list_by_team(team_name_or_team_id) click to toggle source

List team apps.

@param team_name_or_team_id: unique name of team or unique identifier of team

# File lib/platform-api/client.rb, line 3227
def list_by_team(team_name_or_team_id)
  @client.team_app.list_by_team(team_name_or_team_id)
end
transfer_to_account(app_name, body = {}) click to toggle source

Transfer an existing team app to another Heroku account.

@param app_name: unique name of app @param body: the object to pass as the request payload

# File lib/platform-api/client.rb, line 3212
def transfer_to_account(app_name, body = {})
  @client.team_app.transfer_to_account(app_name, body)
end
transfer_to_team(app_name, body = {}) click to toggle source

Transfer an existing team app to another team.

@param app_name: unique name of app @param body: the object to pass as the request payload

# File lib/platform-api/client.rb, line 3220
def transfer_to_team(app_name, body = {})
  @client.team_app.transfer_to_team(app_name, body)
end
update_locked(app_name, body = {}) click to toggle source

Lock or unlock a team app.

@param app_name: unique name of app @param body: the object to pass as the request payload

# File lib/platform-api/client.rb, line 3204
def update_locked(app_name, body = {})
  @client.team_app.update_locked(app_name, body)
end