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

Class Method Summary collapse

Class Attribute Details

.configurationObject

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

Yields:



20
21
22
23
# File 'lib/lacquer.rb', line 20

def configure
  self.configuration ||= Configuration.new
  yield(configuration)
end