Sha256: 0bfacb29cc7c81fa820c5f8d02570d19b4149688b139245470b74a1774e14e10
Contents?: true
Size: 646 Bytes
Versions: 1
Compression:
Stored size: 646 Bytes
Contents
Capistrano::Configuration.instance(:must_exist).load do namespace :upstart do _cset(:service_name) { application } desc "Start the application services" task :start, roles: :app do run "#{sudo} service #{service_name} start" end desc "Stop the application services" task :stop, roles: :app do run "#{sudo} service #{service_name} stop" end desc "Restart the application services" task :restart, roles: :app do run "#{sudo} service #{service_name} start || #{sudo} service #{service_name} restart" end end after 'deploy:restart' do upstart.restart if plur_callback end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
plur-0.0.4 | lib/plur/capistrano/upstart.rb |