spaceship/lib/spaceship/tunes/tunes_client.rb in fastlane-2.14.2 vs spaceship/lib/spaceship/tunes/tunes_client.rb in fastlane-2.15.0.beta.20170213032052
- old
+ new
@@ -101,11 +101,11 @@
def select_team
t_id = (ENV['FASTLANE_ITC_TEAM_ID'] || '').strip
t_name = (ENV['FASTLANE_ITC_TEAM_NAME'] || '').strip
if t_name.length > 0 && t_id.length.zero? # we prefer IDs over names, they are unique
- puts "Looking for iTunes Connect Team with name #{t_name}" if $verbose
+ puts "Looking for iTunes Connect Team with name #{t_name}" if Spaceship::Globals.verbose?
teams.each do |t|
t_id = t['contentProvider']['contentProviderId'].to_s if t['contentProvider']['name'].casecmp(t_name.downcase).zero?
end
@@ -113,10 +113,10 @@
end
t_id = teams.first['contentProvider']['contentProviderId'].to_s if teams.count == 1
if t_id.length > 0
- puts "Looking for iTunes Connect Team with ID #{t_id}" if $verbose
+ puts "Looking for iTunes Connect Team with ID #{t_id}" if Spaceship::Globals.verbose?
# actually set the team id here
self.team_id = t_id
return
end