foreman-capistrano 0.52.2 → 0.52.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -59,7 +59,7 @@ if defined?(Capistrano)
59
59
  if fetch(:foreman_format, "upstart") == 'upstart'
60
60
  run "#{sudo} start #{application} || #{sudo} restart #{application}"
61
61
  elsif fetch(:foreman_format, "upstart") == 'monit'
62
- run "monit restart -g #{application}"
62
+ run "monit reload; sleep 1; monit restart -g #{application}"
63
63
  end
64
64
  end
65
65
  end
@@ -154,7 +154,7 @@ class Foreman::Engine
154
154
  # @returns [String] The root directory
155
155
  #
156
156
  def root
157
- File.expand_path(options[:root] || `pwd -L`.strip)
157
+ File.expand_path(`pwd -L`.strip)
158
158
  end
159
159
 
160
160
  # Get the port for a given process and offset
@@ -1,5 +1,5 @@
1
1
  module Foreman
2
2
 
3
- VERSION = "0.52.2"
3
+ VERSION = "0.52.3"
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman-capistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.2
4
+ version: 0.52.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-06 00:00:00.000000000 Z
12
+ date: 2013-01-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor