Class: BackgroundQueue::Worker::Config
- Inherits:
-
Object
- Object
- BackgroundQueue::Worker::Config
- Defined in:
- lib/background_queue/worker/config.rb
Class Method Summary collapse
- .default_worker_path ⇒ Object
- .secret ⇒ Object
- .secret=(auth) ⇒ Object
- .worker_path ⇒ Object
- .worker_path=(path) ⇒ Object
Class Method Details
.default_worker_path ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/background_queue/worker/config.rb', line 24 def self.default_worker_path if defined?(RAILS_ROOT) File.join(RAILS_ROOT, "lib", "bgq_workers") elsif defined?(Rails) File.join(Rails.root, "lib", "bgq_workers") else raise "You must specify the BackgroundQueue::Worker::Config.worker_path" end end |
.secret ⇒ Object
8 9 10 |
# File 'lib/background_queue/worker/config.rb', line 8 def self.secret @@secret end |
.secret=(auth) ⇒ Object
4 5 6 |
# File 'lib/background_queue/worker/config.rb', line 4 def self.secret=(auth) @@secret = auth end |
.worker_path ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/background_queue/worker/config.rb', line 16 def self.worker_path if @@worker_path.nil? default_worker_path else @@worker_path end end |
.worker_path=(path) ⇒ Object
12 13 14 |
# File 'lib/background_queue/worker/config.rb', line 12 def self.worker_path=(path) @@worker_path = path end |