capistrano-deploy-management 0.1.38 → 0.1.39

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.38'
5
+ s.version = '0.1.39'
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.37 / 0.1.38
1
+ - 0.1.37 / 0.1.38 / 0.1.39
2
2
  try to fix stopping and restarting of unicorn
3
3
 
4
4
  - 0.1.34 / 0.1.35 / 0.1.36
@@ -12,7 +12,7 @@ module CapistranoDeployManagement
12
12
  namespace :unicorn do
13
13
  desc 'Restart unicorn.'
14
14
  task :restart, :roles => :app do
15
- run "if [ -f #{unicorn_pidfile} ] && [ -e 'cat #{unicorn_pidfile}' ]; then #{try_sudo} kill -s USR2 'cat #{unicorn_pidfile}'; else cd #{current_path} && bundle exec unicorn -c #{unicorn_config} -E #{rails_env} -D; fi"
15
+ run "if [ -f #{unicorn_pidfile} ] && [ -e `cat #{unicorn_pidfile}` ]; then #{try_sudo} kill -s USR2 `cat #{unicorn_pidfile}`; else cd #{current_path} && bundle exec unicorn -c #{unicorn_config} -E #{rails_env} -D; fi"
16
16
  # unicorn.stop
17
17
  # unicorn.start
18
18
  end
@@ -24,7 +24,7 @@ module CapistranoDeployManagement
24
24
 
25
25
  desc 'Stop unicorn.'
26
26
  task :stop, :roles => :app do
27
- run "cd #{current_path} && test -s #{unicorn_pidfile} && #{try_sudo} kill -QUIT 'cat #{unicorn_pidfile}' || echo 'Unicorn not running. Nothing to kill.'"
27
+ run "cd #{current_path} && test -s #{unicorn_pidfile} && #{try_sudo} kill -QUIT `cat #{unicorn_pidfile}` || echo 'Unicorn not running. Nothing to kill.'"
28
28
  end
29
29
  end
30
30
 
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.38
4
+ version: 0.1.39
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: