Class: Fastlane::Actions::IsCiAction

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

Constant Summary

Constants inherited from Fastlane::Action

Fastlane::Action::AVAILABLE_CATEGORIES, Fastlane::Action::RETURN_TYPES

Documentation collapse

Class Method Summary collapse

Methods inherited from Fastlane::Action

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

.authorsObject



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

def self.authors
  ["KrauseFx"]
end

.available_optionsObject



20
21
22
# File 'fastlane/lib/fastlane/actions/is_ci.rb', line 20

def self.available_options
  []
end

.categoryObject



46
47
48
# File 'fastlane/lib/fastlane/actions/is_ci.rb', line 46

def self.category
  :misc
end

.descriptionObject



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

.detailsObject



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_codeObject



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

Returns:



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

def self.is_supported?(platform)
  true
end

.return_typeObject



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