Sha256: 1c82b8c41c34b7e10288a3cd12e83b0c92e455d78c6985fd96d4ce2d0904cc68

Contents?: true

Size: 1020 Bytes

Versions: 35

Compression:

Stored size: 1020 Bytes

Contents

module Fastlane
  module Actions
    module SharedValues
    end

    class FastlaneVersionAction < Action
      def self.run(params)
        params = nil unless params.kind_of? Array
        value = (params || []).first
        defined_version = Gem::Version.new(value) if value

        UI.user_error!("Please pass minimum fastlane version as parameter to fastlane_version") unless defined_version

        if Gem::Version.new(Fastlane::VERSION) < defined_version
          UI.user_error!("The Fastfile requires a fastlane version of >= #{defined_version}. You are on #{Fastlane::VERSION}. Please update using `sudo gem update fastlane`.")
        end

        UI.message("fastlane version valid")
      end

      def self.step_text
        "Verifying required fastlane version"
      end

      def self.author
        "KrauseFx"
      end

      def self.description
        "Verifies the minimum fastlane version required"
      end

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

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
fastlane-1.104.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.103.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.102.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.101.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.100.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.99.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.98.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.97.2 lib/fastlane/actions/fastlane_version.rb
fastlane-1.97.1 lib/fastlane/actions/fastlane_version.rb
fastlane-1.97.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.96.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.95.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.94.1 lib/fastlane/actions/fastlane_version.rb
fastlane-1.94.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.93.1 lib/fastlane/actions/fastlane_version.rb
fastlane-1.93.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.92.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.92.0.beta2 lib/fastlane/actions/fastlane_version.rb
fastlane-1.92.0.beta1 lib/fastlane/actions/fastlane_version.rb
fastlane-1.91.0 lib/fastlane/actions/fastlane_version.rb