lib/knapsack_pro/config/env.rb in knapsack_pro-3.10.0 vs lib/knapsack_pro/config/env.rb in knapsack_pro-3.11.0
- old
+ new
@@ -56,9 +56,19 @@
def project_dir
ENV['KNAPSACK_PRO_PROJECT_DIR'] ||
ci_env_for(:project_dir)
end
+ def user_seat
+ ENV['KNAPSACK_PRO_USER_SEAT'] ||
+ ci_env_for(:user_seat)
+ end
+
+ def user_seat_hash
+ return unless user_seat
+ Digest::SHA2.hexdigest(user_seat)
+ end
+
def test_file_pattern
ENV['KNAPSACK_PRO_TEST_FILE_PATTERN']
end
def slow_test_file_pattern