Sha256: 92e36e29443b3d0567f968a0fe8de5657ea58a2a1fdf4e20edce4c74abd7ce52

Contents?: true

Size: 1012 Bytes

Versions: 69

Compression:

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

        raise "Please pass minimum fastlane version as parameter to fastlane_version".red unless defined_version

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

        Helper.log.info "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

69 entries across 69 versions & 1 rubygems

Version Path
fastlane-1.66.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.65.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.64.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.63.1 lib/fastlane/actions/fastlane_version.rb
fastlane-1.63.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.62.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.61.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.60.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.59.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.58.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.57.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.56.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.55.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.54.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.53.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.52.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.51.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.50.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.49.0 lib/fastlane/actions/fastlane_version.rb
fastlane-1.48.0 lib/fastlane/actions/fastlane_version.rb