Method: CachedDeploy#restart
- Defined in:
- lib/chef-deploy/cached_deploy.rb
#restart ⇒ Object
37 38 39 40 41 42 |
# File 'lib/chef-deploy/cached_deploy.rb', line 37 def restart unless @configuration[:restart_command].empty? Chef::Log.info "restarting app: #{latest_release}" chef_run("cd #{current_path} && sudo -u #{user} INLINEDIR=/tmp RAILS_ENV=#{@configuration[:environment]} RACK_ENV=#{@configuration[:environment]} MERB_ENV=#{@configuration[:environment]} #{@configuration[:restart_command]}") end end |