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,
lib/generators/lacquer/install_generator.rb
Defined Under Namespace
Modules: CacheUtils, Generators Classes: AuthenticationError, 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.
18 19 20 |
# File 'lib/lacquer.rb', line 18 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
25 26 27 28 |
# File 'lib/lacquer.rb', line 25 def configure self.configuration ||= Configuration.new yield(configuration) end |