Sha256: 9432a3488c5daf21facb0cd580b77f96f1835db00766d8c0e56041b6eb181186

Contents?: true

Size: 689 Bytes

Versions: 12

Compression:

Stored size: 689 Bytes

Contents

# Capistrano tasks for Lacquer

Capistrano::Configuration.instance(:must_exit).load do
  _cset(:lacquer_roles) { :web }

  after "deploy:web:disable", "lacquer:global_purge"
  after "deploy:web:enable", "lacquer:global_purge"
  after "deploy:rollback", "lacquer:global_purge"
  after "deploy:rollback", "lacquer:restart"
  after "deploy:update", "lacquer:restart"

  namespace :lacquer do
    %w( start stop restart global_purge status ).each do |name|
      desc "#{name} varnish"
      task name.to_sym, :roles => lacquer_roles do
        next if find_servers_for_task(current_task).empty?
        run "cd #{current_path} && #{rake} lacquer:varnishd:#{name}"
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lacquer-0.6.7.pre.alpha lib/lacquer/capistrano/v2/hooks.rb
lacquer-0.6.6 lib/lacquer/capistrano/v2/hooks.rb
lacquer-0.6.5 lib/lacquer/capistrano/v2/hooks.rb
lacquer-0.6.4 lib/lacquer/capistrano/v2/hooks.rb
lacquer-0.6.3 lib/lacquer/capistrano/v2/hooks.rb
lacquer-0.6.2 lib/lacquer/capistrano/v2/hooks.rb
lacquer-0.6.1 lib/lacquer/capistrano/v2/hooks.rb
lacquer-0.6.0 lib/lacquer/capistrano.rb
lacquer-0.5.8 lib/lacquer/capistrano.rb
lacquer-0.5.7 lib/lacquer/capistrano.rb
lacquer-0.5.6 lib/lacquer/capistrano.rb
lacquer-0.5.5 lib/lacquer/capistrano.rb