Sha256: f7663e2ef0e830bf05291c34cf0dfd4731fe5ec594e4b6ebbb4901f6822d2936
Contents?: true
Size: 652 Bytes
Versions: 2
Compression:
Stored size: 652 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| task name.to_sym, :roles => lacquer_roles do next if find_servers_for_task(current_task).empty? run "cd #{current_path} && #{rake} varnishd:#{name}" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lacquer-0.5.0.beta2 | lib/lacquer/capistrano.rb |
lacquer-0.5.0.beta1 | lib/lacquer/capistrano.rb |