lib/knapsack_pro/config/ci/semaphore2.rb in knapsack_pro-4.1.0 vs lib/knapsack_pro/config/ci/semaphore2.rb in knapsack_pro-5.0.0

- old
+ new

@@ -27,9 +27,18 @@ def project_dir if ENV['HOME'] && ENV['SEMAPHORE_GIT_DIR'] "#{ENV['HOME']}/#{ENV['SEMAPHORE_GIT_DIR']}" end end + + def detected + # check 2 keys to be sure we are using Semaphore 2.0 + ENV.key?('SEMAPHORE') && ENV.key?('SEMAPHORE_WORKFLOW_ID') ? self.class : nil + end + + def fixed_queue_split + false + end end end end end