Sha256: a50881ea529f137765141e253eee752d997db744fd97cf12a41c977dcaf534cc

Contents?: true

Size: 747 Bytes

Versions: 69

Compression:

Stored size: 747 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

        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

      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

69 entries across 69 versions & 1 rubygems

Version Path
fastlane-1.28.0 lib/fastlane/actions/team_name.rb
fastlane-1.27.0 lib/fastlane/actions/team_name.rb
fastlane-1.26.0 lib/fastlane/actions/team_name.rb
fastlane-1.25.1 lib/fastlane/actions/team_name.rb
fastlane-1.25.0 lib/fastlane/actions/team_name.rb
fastlane-1.24.0 lib/fastlane/actions/team_name.rb
fastlane-1.23.0 lib/fastlane/actions/team_name.rb
fastlane-1.22.0 lib/fastlane/actions/team_name.rb
fastlane-1.21.0 lib/fastlane/actions/team_name.rb