Sha256: ebac2e1ee4415b607ef9b16c92307a61bc0ae4ad8e22e8553ca3c51efc0e4517

Contents?: true

Size: 689 Bytes

Versions: 1

Compression:

Stored size: 689 Bytes

Contents

module Fastlane
  module Actions
    module SharedValues
    end

    class TeamNameAction < Action
      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

      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

1 entries across 1 versions & 1 rubygems

Version Path
fastlane-0.11.0 lib/fastlane/actions/team_name.rb