Class: Fastlane::Actions::TeamNameAction

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane/actions/team_name.rb

Class Method Summary collapse

Class Method Details

.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
  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