Module: HireFire
- Defined in:
- lib/hirefire.rb,
lib/hirefire/logger.rb,
lib/hirefire/backend.rb,
lib/hirefire/railtie.rb,
lib/hirefire/version.rb,
lib/hirefire/environment.rb,
lib/hirefire/initializer.rb,
lib/hirefire/configuration.rb,
lib/hirefire/environment/base.rb,
lib/hirefire/environment/noop.rb,
lib/hirefire/environment/local.rb,
lib/hirefire/environment/heroku.rb,
lib/hirefire/backend/resque/redis.rb,
lib/hirefire/backend/delayed_job/mongoid.rb,
lib/hirefire/backend/delayed_job/active_record.rb
Defined Under Namespace
Modules: Backend, Environment, Version, Workers Classes: Configuration, Initializer, Logger, Railtie
Constant Summary collapse
- LIB_PATH =
HireFire constants
File.dirname(__FILE__)
- HIREFIRE_PATH =
File.join(LIB_PATH, 'hirefire')
- ENVIRONMENT_PATH =
File.join(HIREFIRE_PATH, 'environment')
- BACKEND_PATH =
File.join(HIREFIRE_PATH, 'backend')
- WORKERS_PATH =
File.join(HIREFIRE_PATH, 'workers')
Class Method Summary collapse
-
.configuration ⇒ Object
Instantiates a new HireFire::Configuration instance and instance variable caches it.
-
.configure {|config| ... } ⇒ nil
This method is used to configure HireFire.
Class Method Details
.configuration ⇒ Object
Instantiates a new HireFire::Configuration instance and instance variable caches it
92 93 94 |
# File 'lib/hirefire.rb', line 92 def self.configuration @configuration ||= HireFire::Configuration.new end |
.configure {|config| ... } ⇒ nil
Every param has it’s own defaults. It’s best to leave the environment param at “nil”. When environment is set to “nil”, it’ll default to the :noop environment. This basically means that you have to run “rake jobs:work” yourself from the console to get the jobs running in development mode. In production, it’ll automatically use :heroku if deployed to the Heroku platform.
This method is used to configure HireFire
85 86 87 |
# File 'lib/hirefire.rb', line 85 def self.configure yield(configuration); nil end |