Class: Fastlane::Actions::IsCiAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES
Class Method Summary
collapse
action_name, author, deprecated_notes, lane_context, method_missing, other_action, output, return_value, sample_return_value, shell_out_should_use_bundle_exec?, step_text
Class Method Details
.authors ⇒ Object
28
29
30
|
# File 'fastlane/lib/fastlane/actions/is_ci.rb', line 28
def self.authors
["KrauseFx"]
end
|
.available_options ⇒ Object
20
21
22
|
# File 'fastlane/lib/fastlane/actions/is_ci.rb', line 20
def self.available_options
[]
end
|
.category ⇒ Object
46
47
48
|
# File 'fastlane/lib/fastlane/actions/is_ci.rb', line 46
def self.category
:misc
end
|
.description ⇒ Object
12
13
14
|
# File 'fastlane/lib/fastlane/actions/is_ci.rb', line 12
def self.description
"Is the current run being executed on a CI system, like Jenkins or Travis"
end
|
.details ⇒ Object
16
17
18
|
# File 'fastlane/lib/fastlane/actions/is_ci.rb', line 16
def self.details
"The return value of this method is true if fastlane is currently executed on Travis, Jenkins, Circle or a similar CI service"
end
|
.example_code ⇒ Object
36
37
38
39
40
41
42
43
44
|
# File 'fastlane/lib/fastlane/actions/is_ci.rb', line 36
def self.example_code
[
'if is_ci?
puts "I\'m a computer"
else
say "Hi Human!"
end'
]
end
|
.is_supported?(platform) ⇒ Boolean
32
33
34
|
# File 'fastlane/lib/fastlane/actions/is_ci.rb', line 32
def self.is_supported?(platform)
true
end
|
.return_type ⇒ Object
24
25
26
|
# File 'fastlane/lib/fastlane/actions/is_ci.rb', line 24
def self.return_type
:bool
end
|
.run(params) ⇒ Object
4
5
6
|
# File 'fastlane/lib/fastlane/actions/is_ci.rb', line 4
def self.run(params)
Helper.ci?
end
|