Sha256: 68af648a06ce73ff84d09b21f295d2efb02fcda6d81e69f5e2dce8693e473423

Contents?: true

Size: 669 Bytes

Versions: 42

Compression:

Stored size: 669 Bytes

Contents

module Fastlane
  module Actions
    module SharedValues
      DEFAULT_PLATFORM = :DEFAULT_PLATFORM
    end

    class DefaultPlatformAction < Action
      def self.run(params)
        raise "You forgot to pass the default platform".red 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

42 entries across 42 versions & 1 rubygems

Version Path
fastlane-1.20.0 lib/fastlane/actions/default_platform.rb
fastlane-1.19.0 lib/fastlane/actions/default_platform.rb
fastlane-1.18.0 lib/fastlane/actions/default_platform.rb
fastlane-1.17.1 lib/fastlane/actions/default_platform.rb
fastlane-1.17.0 lib/fastlane/actions/default_platform.rb
fastlane-1.16.0 lib/fastlane/actions/default_platform.rb
fastlane-1.15.0 lib/fastlane/actions/default_platform.rb
fastlane-1.14.1 lib/fastlane/actions/default_platform.rb
fastlane-1.14.0 lib/fastlane/actions/default_platform.rb
fastlane-1.13.1 lib/fastlane/actions/default_platform.rb
fastlane-1.13.0 lib/fastlane/actions/default_platform.rb
fastlane-1.12.0 lib/fastlane/actions/default_platform.rb
fastlane-1.11.0 lib/fastlane/actions/default_platform.rb
fastlane-1.10.0 lib/fastlane/actions/default_platform.rb
fastlane-1.9.0 lib/fastlane/actions/default_platform.rb
fastlane-1.8.0 lib/fastlane/actions/default_platform.rb
fastlane-1.7.3 lib/fastlane/actions/default_platform.rb
fastlane-1.7.2 lib/fastlane/actions/default_platform.rb
fastlane-1.7.1 lib/fastlane/actions/default_platform.rb
fastlane-1.7.0 lib/fastlane/actions/default_platform.rb