class Pantograph::Actions::IsCiAction
Public Class Methods
available_options()
click to toggle source
# File pantograph/lib/pantograph/actions/is_ci.rb, line 20 def self.available_options [] end
category()
click to toggle source
# File pantograph/lib/pantograph/actions/is_ci.rb, line 46 def self.category :misc end
description()
click to toggle source
@!group Documentation
# File pantograph/lib/pantograph/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()
click to toggle source
# File pantograph/lib/pantograph/actions/is_ci.rb, line 16 def self.details 'Return `true` if pantograph is currently executed on Travis, Jenkins, or a similar CI service' end
example_code()
click to toggle source
# File pantograph/lib/pantograph/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)
click to toggle source
# File pantograph/lib/pantograph/actions/is_ci.rb, line 32 def self.is_supported?(platform) true end
return_type()
click to toggle source
# File pantograph/lib/pantograph/actions/is_ci.rb, line 24 def self.return_type :bool end
run(params)
click to toggle source
# File pantograph/lib/pantograph/actions/is_ci.rb, line 4 def self.run(params) Helper.ci? end