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/workers.rb,
lib/hirefire/environment.rb,
lib/hirefire/initializer.rb,
lib/hirefire/configuration.rb,
lib/hirefire/backend/resque.rb,
lib/hirefire/environment/base.rb,
lib/hirefire/environment/noop.rb,
lib/hirefire/environment/local.rb,
lib/hirefire/environment/heroku.rb,
lib/hirefire/backend/delayed_job.rb,
lib/hirefire/backend/resque/redis.rb,
lib/hirefire/backend/delayed_job/mongoid.rb,
lib/hirefire/backend/delayed_job/active_record.rb,
lib/hirefire/backend/delayed_job/active_record_2.rb
Defined Under Namespace
Modules: Backend, Environment, Version, Workers Classes: Configuration, Initializer, Logger, Railtie
Class Attribute Summary collapse
-
.configuration ⇒ Object
Instantiates a new HireFire::Configuration instance and instance variable caches it.
Class Method Summary collapse
-
.configure {|config| ... } ⇒ nil
This method is used to configure HireFire.
Class Attribute Details
.configuration ⇒ Object
Instantiates a new HireFire::Configuration instance and instance variable caches it
50 51 52 |
# File 'lib/hirefire.rb', line 50 def configuration @configuration ||= HireFire::Configuration.new end |
Class Method Details
.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
43 44 45 |
# File 'lib/hirefire.rb', line 43 def configure yield(configuration); nil end |