Class: Fastlane::Actions::IsCiAction
Constant Summary
Fastlane::Action::AVAILABLE_CATEGORIES
Class Method Summary
collapse
action_name, author, lane_context, method_missing, other_action, output, return_value, sample_return_value, sh, step_text
Class Method Details
.authors ⇒ Object
27
28
29
|
# File 'lib/fastlane/actions/is_ci.rb', line 27
def self.authors
["KrauseFx"]
end
|
.available_options ⇒ Object
23
24
25
|
# File 'lib/fastlane/actions/is_ci.rb', line 23
def self.available_options
[]
end
|
.category ⇒ Object
45
46
47
|
# File 'lib/fastlane/actions/is_ci.rb', line 45
def self.category
:misc
end
|
.description ⇒ Object
12
13
14
|
# File '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
19
20
21
|
# File '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"
].join("\n")
end
|
.example_code ⇒ Object
35
36
37
38
39
40
41
42
43
|
# File 'lib/fastlane/actions/is_ci.rb', line 35
def self.example_code
[
'if is_ci?
puts "I\'m a computer"
else
say "Hi Human!"
end'
]
end
|
.is_supported?(platform) ⇒ Boolean
31
32
33
|
# File 'lib/fastlane/actions/is_ci.rb', line 31
def self.is_supported?(platform)
true
end
|
.run(params) ⇒ Object
4
5
6
|
# File 'lib/fastlane/actions/is_ci.rb', line 4
def self.run(params)
Helper.is_ci?
end
|