Class: Fastlane::Actions::IsCiAction

Inherits:
Fastlane::Action show all
Defined in:
lib/fastlane/actions/is_ci.rb

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

action_name, author, output, return_value, sh, step_text

Class Method Details

.authorsObject



27
28
29
30
# File 'lib/fastlane/actions/is_ci.rb', line 27

def self.authors
  # So no one will ever forget your contribution to fastlane :) You are awesome btw!
  ["KrauseFx"]
end

.available_optionsObject



23
24
25
# File 'lib/fastlane/actions/is_ci.rb', line 23

def self.available_options
  []
end

.descriptionObject



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

.detailsObject



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

.is_supported?(platform) ⇒ Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/fastlane/actions/is_ci.rb', line 32

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