lib/spaceship/portal/ui/select_team.rb in spaceship-0.3.4 vs lib/spaceship/portal/ui/select_team.rb in spaceship-0.4.0
- old
+ new
@@ -6,15 +6,15 @@
# [{"status"=>"active",
# "teamId"=>"5A997XAAAA",
# "type"=>"Company/Organization",
# "extendedTeamAttributes"=>{},
# "teamAgent"=>{
- # "personId"=>15534241111,
- # "firstName"=>"Felix",
- # "lastName"=>"Krause",
- # "email"=>"spaceship@krausefx.com",
- # "developerStatus"=>"active",
+ # "personId"=>15534241111,
+ # "firstName"=>"Felix",
+ # "lastName"=>"Krause",
+ # "email"=>"spaceship@krausefx.com",
+ # "developerStatus"=>"active",
# "teamMemberId"=>"5Y354CXAAA"},
# "memberships"=>
# [{"membershipId"=>"HJ5WHYC5CE",
# "membershipProductId"=>"ds1",
# "status"=>"active",
@@ -55,14 +55,12 @@
return team['teamId'] if (team['name'].strip == team_name)
end
puts "Couldn't find team with Name '#{team_name}'"
end
-
return teams[0]['teamId'] if teams.count == 1 # user is just in one team
-
# User Selection
loop do
# Multiple teams, user has to select
puts "Multiple teams found, please enter the number of the team you want to use: "
teams.each_with_index do |team, i|
@@ -75,6 +73,6 @@
return team_to_use['teamId'] if team_to_use
end
end
end
end
-end
\ No newline at end of file
+end