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