Module: PassiveQueue
- Defined in:
- lib/passive_queue.rb,
lib/passive_queue/cli.rb,
lib/passive_queue/web.rb,
lib/passive_queue/web.rb,
lib/passive_queue/engine.rb,
lib/passive_queue/adapter.rb,
lib/passive_queue/version.rb,
lib/passive_queue/configuration.rb
Overview
lib/passive_queue/configuration.rb
Defined Under Namespace
Classes: Adapter, CLI, Configuration, Engine, Error, Web
Constant Summary collapse
- VERSION =
1.0 so stable and production ready
"1.1.0"
Class Method Summary collapse
-
.configuration ⇒ Configuration
Returns the current PassiveQueue configuration instance.
-
.configure {|Configuration| ... } ⇒ void
Configures PassiveQueue with a block.
-
.philosophical_thoughts ⇒ Array<String>
Returns an array of philosophical thoughts about job processing.
-
.zen_quotes ⇒ Array<String>
Returns an array of zen quotes about passive processing.
Class Method Details
.configuration ⇒ Configuration
Returns the current PassiveQueue configuration instance
21 22 23 |
# File 'lib/passive_queue.rb', line 21 def self.configuration @configuration ||= Configuration.new end |
.configure {|Configuration| ... } ⇒ void
This method returns an undefined value.
Configures PassiveQueue with a block
35 36 37 |
# File 'lib/passive_queue.rb', line 35 def self.configure yield(configuration) end |
.philosophical_thoughts ⇒ Array<String>
Returns an array of philosophical thoughts about job processing
60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/passive_queue.rb', line 60 def self.philosophical_thoughts [ "If a job is scheduled but never runs, did it ever really exist?", "What is the sound of one background task not processing?", "The universe is vast and infinite, much like your job queue.", "In the grand scheme of things, what difference does one unprocessed job make?", "Perhaps the real treasure was the jobs we never processed along the way.", "Time is an illusion. Deadlines are an even bigger illusion.", "The job queue is a metaphor for the human condition.", "We are all just jobs waiting to be processed in the great queue of existence.", "The passive queue teaches us that sometimes the most profound action is inaction.", "In choosing to do nothing, we choose everything." ] end |
.zen_quotes ⇒ Array<String>
Returns an array of zen quotes about passive processing
42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/passive_queue.rb', line 42 def self.zen_quotes [ "The best job is the one never executed.", "In the stillness of non-processing, we find true performance.", "Why do something when you can do nothing?", "The art of non-execution is the highest form of productivity.", "A queue that does nothing is a queue that never fails.", "In the void of processing, infinite possibilities exist.", "The job that is never run is the job that never crashes.", "Embrace the emptiness of your background tasks.", "True scalability comes from processing nothing at all.", "The zen master processes without processing." ] end |