spaceship/lib/spaceship/portal/ui/select_team.rb in fastlane-2.90.0.beta.20180409050033 vs spaceship/lib/spaceship/portal/ui/select_team.rb in fastlane-2.90.0.beta.20180410050128
- old
+ new
@@ -45,21 +45,21 @@
end
return true
end
# rubocop:enable Require/MissingRequireStatement
- def select_team
+ def select_team(team_id: team_id = nil, team_name: team_name = nil)
teams = client.teams
if teams.count == 0
puts("No teams available on the Developer Portal")
puts("You must accept an invitation to a team for it to be available")
puts("To learn more about teams and how to use them visit https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ManagingYourTeam/ManagingYourTeam.html")
raise "Your account is in no teams"
end
- team_id = (ENV['FASTLANE_TEAM_ID'] || '').strip
- team_name = (ENV['FASTLANE_TEAM_NAME'] || '').strip
+ team_id = (team_id || ENV['FASTLANE_TEAM_ID'] || '').strip
+ team_name = (team_name || ENV['FASTLANE_TEAM_NAME'] || '').strip
if team_id.length > 0
# User provided a value, let's see if it's valid
teams.each_with_index do |team, i|
# There are 2 different values - one from the login page one from the Dev Team Page