Class: Optimal::CI::Provider::Travis
- Defined in:
- lib/optimal/ci/provider/travis.rb
Instance Method Summary collapse
- #branch ⇒ Object
- #build_number ⇒ Object
- #commit_hash ⇒ Object
- #node_index ⇒ Object
- #total_nodes ⇒ Object
Methods inherited from Base
Instance Method Details
#branch ⇒ Object
21 22 23 |
# File 'lib/optimal/ci/provider/travis.rb', line 21 def branch ENV['TRAVIS_BRANCH'] end |
#build_number ⇒ Object
13 14 15 |
# File 'lib/optimal/ci/provider/travis.rb', line 13 def build_number ENV['TRAVIS_BUILD_NUMBER'] end |
#commit_hash ⇒ Object
17 18 19 |
# File 'lib/optimal/ci/provider/travis.rb', line 17 def commit_hash ENV['TRAVIS_COMMIT'] end |
#node_index ⇒ Object
9 10 11 |
# File 'lib/optimal/ci/provider/travis.rb', line 9 def node_index ENV['CI_NODE_INDEX'] end |
#total_nodes ⇒ Object
5 6 7 |
# File 'lib/optimal/ci/provider/travis.rb', line 5 def total_nodes ENV['CI_NODE_TOTAL'] end |