Sha256: 437846c6044c611d4bc4fa3c1f8f6acd85be87d3f8ab54b938b94000728f6026

Contents?: true

Size: 960 Bytes

Versions: 42

Compression:

Stored size: 960 Bytes

Contents

module Fastlane
  module Actions
    module SharedValues
      
    end

    class FastlaneVersionAction < Action
      def self.run(params)
        defined_version = ((Gem::Version.new(params.first) if params.first) rescue nil)
        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

42 entries across 42 versions & 1 rubygems

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