spaceship/lib/spaceship/portal/ui/select_team.rb in fastlane-2.75.0.beta.20180109010003 vs spaceship/lib/spaceship/portal/ui/select_team.rb in fastlane-2.75.0
- old
+ new
@@ -29,11 +29,11 @@
# {"personId"=>nil, "firstName"=>nil, "lastName"=>nil, "email"=>nil, "developerStatus"=>nil, "privileges"=>{}, "roles"=>["TEAM_ADMIN"], "teamMemberId"=>"HQR8N4GAAA"},
# "name"=>"Company GmbH"},
# {...}
# ]
- # rubocop:disable Require/MissingRequireStatement
+ # rubocop:disable Lint/MissingRequireStatement
def self.ci?
if Object.const_defined?("FastlaneCore") && FastlaneCore.const_defined?("Helper")
return FastlaneCore::Helper.ci?
end
return false
@@ -43,11 +43,11 @@
if Object.const_defined?("FastlaneCore") && FastlaneCore.const_defined?("UI")
return FastlaneCore::UI.interactive?
end
return true
end
- # rubocop:enable Require/MissingRequireStatement
+ # rubocop:enable Lint/MissingRequireStatement
def select_team
teams = client.teams
if teams.count == 0
@@ -91,10 +91,10 @@
end
# User Selection
loop do
# Multiple teams, user has to select
- puts("Multiple teams found on the Developer Portal, please enter the number of the team you want to use: ")
+ puts("Multiple teams found on the " + "Developer Portal".yellow + ", please enter the number of the team you want to use: ")
teams.each_with_index do |team, i|
puts("#{i + 1}) #{team['teamId']} \"#{team['name']}\" (#{team['type']})")
end
selected = ($stdin.gets || '').strip.to_i - 1