capistrano-deploy-management 0.1.34 → 0.1.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'capistrano-deploy-management'
4
4
  s.description = 'Collection of Capistrano recipes for deploying Rails apps into high-performance environments'
5
- s.version = '0.1.34'
5
+ s.version = '0.1.35'
6
6
  s.platform = Gem::Platform::RUBY
7
7
  s.authors = ['Dominik Rodler']
8
8
  s.email = ['dominik.rodler@gmail.com']
data/changelog.md CHANGED
@@ -1,4 +1,4 @@
1
- - 0.1.34
1
+ - 0.1.34 / 0.1.34
2
2
  start unicon using bundle exec
3
3
 
4
4
  - 0.1.23 / 0.1.24 / 0.1.25 / 0.1.26 / 0.1.27 / 0.1.28 / 0.1.28 / 0.1.30 / 0.1.31 / 0.1.32 / 0.1.32
@@ -11,7 +11,7 @@ module CapistranoDeployManagement
11
11
  desc 'Restart unicorn.'
12
12
  task :restart, :roles => :app do
13
13
  # FIXME: PID does not exist, thus restarting fails
14
- # run "cd #{current_path} && kill -s USR2 #{unicorn_pid}"
14
+ # run "#{try_sudo} kill -s USR2 $(#{unicorn_pid})"
15
15
  unicorn.stop
16
16
  unicorn.start
17
17
  end
@@ -23,8 +23,7 @@ module CapistranoDeployManagement
23
23
 
24
24
  desc 'Stop unicorn.'
25
25
  task :stop, :roles => :app do
26
- # run "cd #{current_path} && kill $(#{unicorn_pid})"
27
- run "cd #{current_path} && test -s #{unicorn_pidfile} && kill $(#{unicorn_pid}) || echo 'Unicorn not running. Nothing to kill.'"
26
+ run "cd #{current_path} && test -s #{unicorn_pidfile} && #{}{try_sudo} kill $(#{unicorn_pid}) || echo 'Unicorn not running. Nothing to kill.'"
28
27
  end
29
28
  end
30
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-deploy-management
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.34
4
+ version: 0.1.35
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: