Sha256: c69e65b54caa2589255e20236bf26ba576c237d487b6c4ac47dedf8747f94eb0
Contents?: true
Size: 487 Bytes
Versions: 23
Compression:
Stored size: 487 Bytes
Contents
# frozen_string_literal: true module KnapsackPro module Config class EnvGenerator class << self 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 def set_subset_queue_id ENV['KNAPSACK_PRO_SUBSET_QUEUE_ID'] = SecureRandom.uuid end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems