class KnapsackPro::Config::CI::Circle
Public Instance Methods
branch()
click to toggle source
# File lib/knapsack_pro/config/ci/circle.rb, line 23 def branch ENV['CIRCLE_BRANCH'] end
ci_provider()
click to toggle source
# File lib/knapsack_pro/config/ci/circle.rb, line 43 def ci_provider "CircleCI" end
commit_hash()
click to toggle source
# File lib/knapsack_pro/config/ci/circle.rb, line 19 def commit_hash ENV['CIRCLE_SHA1'] end
detected()
click to toggle source
# File lib/knapsack_pro/config/ci/circle.rb, line 35 def detected ENV.key?('CIRCLECI') ? self.class : nil end
fixed_queue_split()
click to toggle source
# File lib/knapsack_pro/config/ci/circle.rb, line 39 def fixed_queue_split false end
node_build_id()
click to toggle source
# File lib/knapsack_pro/config/ci/circle.rb, line 15 def node_build_id ENV['CIRCLE_BUILD_NUM'] end
node_index()
click to toggle source
# File lib/knapsack_pro/config/ci/circle.rb, line 11 def node_index ENV['CIRCLE_NODE_INDEX'] end
node_total()
click to toggle source
# File lib/knapsack_pro/config/ci/circle.rb, line 7 def node_total ENV['CIRCLE_NODE_TOTAL'] end
project_dir()
click to toggle source
# File lib/knapsack_pro/config/ci/circle.rb, line 27 def project_dir ENV['CIRCLE_WORKING_DIRECTORY'] end
user_seat()
click to toggle source
# File lib/knapsack_pro/config/ci/circle.rb, line 31 def user_seat ENV['CIRCLE_USERNAME'] || ENV['CIRCLE_PR_USERNAME'] end