Sha256: 53b95e2f74818f9f7362e07814adcde9b9921577b9046d87fadf2f41d3d40b04

Contents?: true

Size: 696 Bytes

Versions: 1

Compression:

Stored size: 696 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 reload ).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

1 entries across 1 versions & 1 rubygems

Version Path
lacquer-0.6.7.pre.alpha1 lib/lacquer/capistrano/v2/hooks.rb