Sha256: 6d00af4086529eaa297e466c607439b27bc7ae36e7d38365978f06a4939911b5

Contents?: true

Size: 677 Bytes

Versions: 7

Compression:

Stored size: 677 Bytes

Contents

module Fastlane
  module Actions
    module SharedValues
      DEFAULT_PLATFORM = :DEFAULT_PLATFORM
    end

    class DefaultPlatformAction < Action
      def self.run(params)
        UI.user_error!("You forgot to pass the default platform") if params.first.nil?

        platform = params.first.to_sym

        SupportedPlatforms.verify!(platform)

        Actions.lane_context[SharedValues::DEFAULT_PLATFORM] = platform
      end

      def self.description
        "Defines a default platform to not have to specify the platform"
      end

      def self.author
        "KrauseFx"
      end

      def self.is_supported?(platform)
        true
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fastlane-1.104.0 lib/fastlane/actions/default_platform.rb
fastlane-1.103.0 lib/fastlane/actions/default_platform.rb
fastlane-1.102.0 lib/fastlane/actions/default_platform.rb
fastlane-1.101.0 lib/fastlane/actions/default_platform.rb
fastlane-1.100.0 lib/fastlane/actions/default_platform.rb
fastlane-1.99.0 lib/fastlane/actions/default_platform.rb
fastlane-1.98.0 lib/fastlane/actions/default_platform.rb