Module: CapistranoDeployManagement::Passenger

Defined in:
lib/capistrano-deploy-management/passenger.rb

Class Method Summary collapse

Class Method Details

.load_into(configuration) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'lib/capistrano-deploy-management/passenger.rb', line 3

def self.load_into(configuration)
  configuration.load do

    namespace :passenger do
      desc 'Restart passenger'
      task :restart, :roles => :app, :except => {:no_release => true} do
        run "touch #{current_path}/tmp/restart.txt"
      end
    end

    after 'deploy:restart', 'passenger:restart'

  end
end