class Fastlane::Actions::TeamNameAction

Public Class Methods

author() click to toggle source
# File fastlane/lib/fastlane/actions/team_name.rb, line 23
def self.author
  "KrauseFx"
end
category() click to toggle source
# File fastlane/lib/fastlane/actions/team_name.rb, line 37
def self.category
  :misc
end
description() click to toggle source
# File fastlane/lib/fastlane/actions/team_name.rb, line 19
def self.description
  "Set a team to use by its name"
end
example_code() click to toggle source
# File fastlane/lib/fastlane/actions/team_name.rb, line 31
def self.example_code
  [
    'team_name("Felix Krause")'
  ]
end
is_supported?(platform) click to toggle source
# File fastlane/lib/fastlane/actions/team_name.rb, line 27
def self.is_supported?(platform)
  platform == :ios
end
run(params) click to toggle source
# File fastlane/lib/fastlane/actions/team_name.rb, line 7
def self.run(params)
  params = nil unless params.kind_of?(Array)
  team = (params || []).first
  UI.user_error!("Please pass your Team Name (e.g. team_name 'Felix Krause')") unless team.to_s.length > 0

  UI.message("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