Sha256: 9f541c4ae1f465a57c436d78f4b7c8986ba747e7091105bfa5fff3a6485d9404

Contents?: true

Size: 743 Bytes

Versions: 2

Compression:

Stored size: 743 Bytes

Contents

module Fastlane
  module Actions
    module SharedValues
    end

    class TeamNameAction < Action
      def self.run(params)
        params = nil unless params.kind_of? Array
        team = (params || []).first
        raise "Please pass your Team Name (e.g. team_name 'Felix Krause')".red 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

      def self.description
        "Set a team to use by its name"
      end

      def self.author
        "KrauseFx"
      end

      def self.is_supported?(platform)
        platform == :ios
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fastlane-1.68.0 lib/fastlane/actions/team_name.rb
fastlane-1.67.0 lib/fastlane/actions/team_name.rb