Method: Spaceship::Portal.select_team

Defined in:
spaceship/lib/spaceship/portal/spaceship.rb

.select_team(team_id: nil, team_name: nil) ⇒ String

Open up the team selection for the user (if necessary).

If the user is in multiple teams, a team selection is shown. The user can then select a team by entering the number

Additionally, the team ID is shown next to each team name so that the user can use the environment variable ‘FASTLANE_TEAM_ID` for future user.

Parameters:

  • team_id (String) (defaults to: nil)

    (optional): The ID of a Developer Portal team

  • team_name (String) (defaults to: nil)

    (optional): The name of a Developer Portal team

Returns:

  • (String)

    The ID of the select team. You also get the value if the user is only in one team.



42
43
44
# File 'spaceship/lib/spaceship/portal/spaceship.rb', line 42

def select_team(team_id: nil, team_name: nil)
  @client.select_team(team_id: team_id, team_name: team_name)
end