Class: KnapsackPro::Config::CI::Circle
- Defined in:
- lib/knapsack_pro/config/ci/circle.rb
Instance Method Summary collapse
- #branch ⇒ Object
- #commit_hash ⇒ Object
- #node_index ⇒ Object
- #node_total ⇒ Object
- #project_dir ⇒ Object
Instance Method Details
#branch ⇒ Object
17 18 19 |
# File 'lib/knapsack_pro/config/ci/circle.rb', line 17 def branch ENV['CIRCLE_BRANCH'] end |
#commit_hash ⇒ Object
13 14 15 |
# File 'lib/knapsack_pro/config/ci/circle.rb', line 13 def commit_hash ENV['CIRCLE_SHA1'] end |
#node_index ⇒ Object
9 10 11 |
# File 'lib/knapsack_pro/config/ci/circle.rb', line 9 def node_index ENV['CIRCLE_NODE_INDEX'] end |
#node_total ⇒ Object
5 6 7 |
# File 'lib/knapsack_pro/config/ci/circle.rb', line 5 def node_total ENV['CIRCLE_NODE_TOTAL'] end |
#project_dir ⇒ Object
21 22 23 24 |
# File 'lib/knapsack_pro/config/ci/circle.rb', line 21 def project_dir project_repo_name = ENV['CIRCLE_PROJECT_REPONAME'] "/home/ubuntu/#{project_repo_name}" if project_repo_name end |