Class: IntegrationDiff::RunDetails
- Inherits:
-
Object
- Object
- IntegrationDiff::RunDetails
- Defined in:
- lib/integration_diff/run_details.rb
Defined Under Namespace
Classes: Default, GitRepo, Jenkins, Travis
Instance Method Summary collapse
Instance Method Details
#details ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/integration_diff/run_details.rb', line 43 def details if !!ENV['JENKINS_HOME'] Jenkins.new elsif !!ENV['TRAVIS'] Travis.new elsif system('git branch') GitRepo.new else Default.new end end |