Class: Optimal::CI::Provider::Circle
- Defined in:
- lib/optimal/ci/provider/circle.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/circle.rb', line 21 def branch ENV['CIRCLE_BRANCH'] end |
#build_number ⇒ Object
13 14 15 |
# File 'lib/optimal/ci/provider/circle.rb', line 13 def build_number ENV['CIRCLE_BUILD_NUM'] end |
#commit_hash ⇒ Object
17 18 19 |
# File 'lib/optimal/ci/provider/circle.rb', line 17 def commit_hash ENV['CIRCLE_SHA1'] end |
#node_index ⇒ Object
9 10 11 |
# File 'lib/optimal/ci/provider/circle.rb', line 9 def node_index ENV['CIRCLE_NODE_INDEX'] end |
#total_nodes ⇒ Object
5 6 7 |
# File 'lib/optimal/ci/provider/circle.rb', line 5 def total_nodes ENV['CIRCLE_NODE_TOTAL'] end |