Sha256: b5627853a6e8b7e762f65e96f60592ff0d0462acd1417614d71d7c56f8412f5f

Contents?: true

Size: 437 Bytes

Versions: 11

Compression:

Stored size: 437 Bytes

Contents

Capistrano::Configuration.instance(:must_exist).load do
  set(:unicorn_pid) { "`cat #{deploy_to}/tmp/pids/unicorn.pid`" }

  namespace :unicorn do
    desc 'Reload unicorn'
    task :reload, :roles => :app, :except => {:no_release => true} do
      run "kill -HUP #{unicorn_pid}"
    end

    desc 'Stop unicorn'
    task :stop, :roles => :app, :except => {:no_release => true} do
      run "kill -QUIT #{unicorn_pid}"
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
capistrano-deploy-0.2.0 lib/capistrano-deploy/unicorn.rb
capistrano-deploy-0.1.2 lib/capistrano-deploy/unicorn.rb
capistrano-deploy-0.1.1 lib/capistrano-deploy/unicorn.rb
capistrano-deploy-0.1.0 lib/capistrano-deploy/unicorn.rb
capistrano-deploy-0.0.7 lib/capistrano-deploy/unicorn.rb
capistrano-deploy-0.0.6 lib/capistrano-deploy/unicorn.rb
capistrano-deploy-0.0.5 lib/capistrano-deploy/unicorn.rb
capistrano-deploy-0.0.4 lib/capistrano-deploy/unicorn.rb
capistrano-deploy-0.0.3 lib/capistrano-deploy/unicorn.rb
capistrano-deploy-0.0.2 lib/capistrano-deploy/unicorn.rb
capistrano-deploy-0.0.1 lib/capistrano-deploy/unicorn.rb