lib/knapsack_pro/config/env.rb in knapsack_pro-0.17.0 vs lib/knapsack_pro/config/env.rb in knapsack_pro-0.18.0
- old
+ new
@@ -12,10 +12,16 @@
(ENV['KNAPSACK_PRO_CI_NODE_INDEX'] ||
ci_env_for(:node_index) ||
0).to_i
end
+ def ci_node_build_id
+ ENV['KNAPSACK_PRO_CI_NODE_BUILD_ID'] ||
+ ci_env_for(:node_build_id) ||
+ 'missing-build-id'
+ end
+
def commit_hash
ENV['KNAPSACK_PRO_COMMIT_HASH'] ||
ci_env_for(:commit_hash)
end
@@ -41,9 +47,25 @@
ENV['KNAPSACK_PRO_RECORDING_ENABLED']
end
def recording_enabled?
recording_enabled == 'true'
+ end
+
+ def queue_recording_enabled
+ ENV['KNAPSACK_PRO_QUEUE_RECORDING_ENABLED']
+ end
+
+ def queue_recording_enabled?
+ queue_recording_enabled == 'true'
+ end
+
+ def queue_id
+ ENV['KNAPSACK_PRO_QUEUE_ID'] || raise('Missing Queue ID')
+ end
+
+ def subset_queue_id
+ ENV['KNAPSACK_PRO_SUBSET_QUEUE_ID'] || raise('Missing Subset Queue ID')
end
def test_files_encrypted
ENV['KNAPSACK_PRO_TEST_FILES_ENCRYPTED']
end