underglow 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/underglow/capistrano/helpers.rb +1 -5
- data/lib/underglow/version.rb +1 -1
- metadata +2 -2
@@ -16,10 +16,6 @@ Capistrano::Configuration.instance.load do
|
|
16
16
|
# Sends kill signal if process is running
|
17
17
|
def kill(process, signal)
|
18
18
|
pidfile_path = "#{shared_path}/pids/#{process}.pid"
|
19
|
-
|
20
|
-
if remote_file_exists?(pidfile_path)
|
21
|
-
pid = read_remote_file(pidfile_path).to_i
|
22
|
-
run "kill -#{signal} #{pid} > /dev/null 2>&1" # suppress errors
|
23
|
-
end
|
19
|
+
run "if [ -e #{pidfile_path} ]; then kill -#{signal} `cat #{pidfile_path}` > /dev/null 2>&1; fi"
|
24
20
|
end
|
25
21
|
end
|
data/lib/underglow/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: underglow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
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: 2012-11-
|
12
|
+
date: 2012-11-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|