Class: Fastlane::Actions::FastlaneVersionAction
Class Method Summary
collapse
action_name, authors, available_options, details, method_missing, other_action, output, return_value, sh
Class Method Details
.author ⇒ Object
25
26
27
|
# File 'lib/fastlane/actions/fastlane_version.rb', line 25
def self.author
"KrauseFx"
end
|
.description ⇒ Object
29
30
31
|
# File 'lib/fastlane/actions/fastlane_version.rb', line 29
def self.description
"Verifies the minimum fastlane version required"
end
|
.is_supported?(platform) ⇒ Boolean
33
34
35
|
# File 'lib/fastlane/actions/fastlane_version.rb', line 33
def self.is_supported?(platform)
true
end
|
.run(params) ⇒ Object
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# File 'lib/fastlane/actions/fastlane_version.rb', line 7
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
|
.step_text ⇒ Object
21
22
23
|
# File 'lib/fastlane/actions/fastlane_version.rb', line 21
def self.step_text
"Verifying required fastlane version"
end
|