Class: KnapsackPro::Config::EnvGenerator
- Inherits:
-
Object
- Object
- KnapsackPro::Config::EnvGenerator
- Defined in:
- lib/knapsack_pro/config/env_generator.rb
Class Method Summary collapse
Class Method Details
.set_queue_id ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/knapsack_pro/config/env_generator.rb', line 5 def set_queue_id if ENV['KNAPSACK_PRO_QUEUE_ID'] raise 'Queue ID already generated.' else ENV['KNAPSACK_PRO_QUEUE_ID'] = "#{Time.now.to_i}_#{SecureRandom.uuid}" end end |
.set_subset_queue_id ⇒ Object
13 14 15 |
# File 'lib/knapsack_pro/config/env_generator.rb', line 13 def set_subset_queue_id ENV['KNAPSACK_PRO_SUBSET_QUEUE_ID'] = SecureRandom.uuid end |