Class: Fastlane::Actions::TeamNameAction
Class Method Summary
collapse
action_name, authors, available_options, details, output, sh, step_text
Class Method Details
.author ⇒ Object
22
23
24
|
# File 'lib/fastlane/actions/team_name.rb', line 22
def self.author
"KrauseFx"
end
|
.description ⇒ Object
18
19
20
|
# File 'lib/fastlane/actions/team_name.rb', line 18
def self.description
"Set a team to use by its name"
end
|
.is_supported?(platform) ⇒ Boolean
26
27
28
|
# File 'lib/fastlane/actions/team_name.rb', line 26
def self.is_supported?(platform)
platform == :ios
end
|
.run(params) ⇒ Object
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/fastlane/actions/team_name.rb', line 7
def self.run(params)
team = (params.first rescue nil)
raise "Please pass your Team Name (e.g. team_name 'Felix Krause')".red unless team.to_s.length > 0
Helper.log.info "Setting Team Name to '#{team}' for all build steps"
[:FASTLANE_TEAM_NAME, :PRODUCE_TEAM_NAME].each do |current|
ENV[current.to_s] = team
end
end
|