class Fastlane::Actions::TeamIdAction
Public Class Methods
category()
click to toggle source
# File fastlane/lib/fastlane/actions/team_id.rb, line 37 def self.category :misc end
description()
click to toggle source
# File fastlane/lib/fastlane/actions/team_id.rb, line 23 def self.description "Specify the Team ID you want to use for the Apple Developer Portal" end
example_code()
click to toggle source
# File fastlane/lib/fastlane/actions/team_id.rb, line 31 def self.example_code [ 'team_id("Q2CBPK58CA")' ] end
is_supported?(platform)
click to toggle source
# File fastlane/lib/fastlane/actions/team_id.rb, line 27 def self.is_supported?(platform) platform == :ios end
run(params)
click to toggle source
# File fastlane/lib/fastlane/actions/team_id.rb, line 7 def self.run(params) params = nil unless params.kind_of?(Array) team = (params || []).first UI.user_error!("Please pass your Team ID (e.g. team_id 'Q2CBPK58CA')") unless team.to_s.length > 0 UI.message("Setting Team ID to '#{team}' for all build steps") [:CERT_TEAM_ID, :SIGH_TEAM_ID, :PEM_TEAM_ID, :PRODUCE_TEAM_ID, :SIGH_TEAM_ID, :FASTLANE_TEAM_ID].each do |current| ENV[current.to_s] = team end end