Sha256: f77e2a634924e60fe3d1f6440af93b029365fbb59330134b3de19d305ba35506

Contents?: true

Size: 286 Bytes

Versions: 7

Compression:

Stored size: 286 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  _cset :varnish_roles, [:app]

  namespace :varnish do
    desc "Clear the entire varnish cache ('.*')"
    task :clear_cache, :roles => varnish_roles do
      sudo 'varnishadm -T localhost:6082 purge.url ".*"'
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
thunder_punch-0.1.6 lib/thunder_punch/recipes/varnish/cache.rb
thunder_punch-0.1.5 lib/thunder_punch/recipes/varnish/cache.rb
thunder_punch-0.1.4 lib/thunder_punch/recipes/varnish/cache.rb
thunder_punch-0.1.3 lib/thunder_punch/recipes/varnish/cache.rb
thunder_punch-0.1.2 lib/thunder_punch/recipes/varnish/cache.rb
thunder_punch-0.1.1 lib/thunder_punch/recipes/varnish/cache.rb
thunder_punch-0.1.0 lib/thunder_punch/recipes/varnish/cache.rb