Sha256: 8faccf6b4e58153b59df7381f1992ffa0bf4d32b8bbe39b3db7700d429a29034
Contents?: true
Size: 897 Bytes
Versions: 5
Compression:
Stored size: 897 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 end end end
Version data entries
5 entries across 5 versions & 1 rubygems