Module: Lacquer
- Defined in:
- lib/lacquer.rb,
lib/lacquer/varnish.rb,
lib/lacquer/resque_job.rb,
lib/lacquer/cache_utils.rb,
lib/lacquer/configuration.rb,
lib/lacquer/delayed_job_job.rb
Defined Under Namespace
Modules: CacheUtils Classes: Configuration, DelayedJobJob, ResqueJob, Varnish, VarnishError
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Object
Call this method to modify defaults in your initailizers.
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
13 14 15 |
# File 'lib/lacquer.rb', line 13 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
Call this method to modify defaults in your initailizers.
Lacquer.configure do |config|
config.varnish_servers << { :host => '0.0.0.0', :port => 6082, :timeout => 5 }
end
20 21 22 23 |
# File 'lib/lacquer.rb', line 20 def configure self.configuration ||= Configuration.new yield(configuration) end |