Module: Optimal::CI::Provider
- Defined in:
- lib/optimal/ci/provider.rb,
lib/optimal/ci/provider/base.rb,
lib/optimal/ci/provider/circle.rb,
lib/optimal/ci/provider/travis.rb
Defined Under Namespace
Classes: Base, Circle, Travis
Class Method Summary
collapse
Class Method Details
.detect ⇒ Object
4
5
6
7
8
9
10
11
12
13
14
|
# File 'lib/optimal/ci/provider.rb', line 4
def self.detect
list = constants - [:Base]
list.each do |p|
provider = const_get(p).new
return provider unless provider.build_number.nil?
end
nil
end
|