servitude 0.7.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/servitude/cli/service.rb +2 -1
- data/lib/servitude/daemon.rb +2 -0
- data/lib/servitude/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8797f541827e4accebaddbbd1a40e78603225489
|
4
|
+
data.tar.gz: 48b73b9c1630653ff2fcee45ee335d11e09cbebd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e4af9fe689fc799ab4be67dbb66138f1f797860b7c99be30066bb7deba1fc6e7490456104b94c23af7d466e03b0bd6d56c4a17a8a872f33df01bf61ffd1f7f7
|
7
|
+
data.tar.gz: 6cad6cbcc17dfd3861fd65b630fe58cdf29c35a8630e56a8c3632246fd72293264a5ac709a836997c293551edd366d9dc256155e5a5fdae7196b20a5b383c93f
|
@@ -55,7 +55,8 @@ module Servitude
|
|
55
55
|
desc "status", "Check the status of the server daemon"
|
56
56
|
pid_option
|
57
57
|
def status
|
58
|
-
Servitude::Daemon.new( options.merge( use_config: Servitude::USE_CONFIG )).status
|
58
|
+
result = Servitude::Daemon.new( options.merge( use_config: Servitude::USE_CONFIG )).status
|
59
|
+
at_exit { exit result }
|
59
60
|
end
|
60
61
|
|
61
62
|
desc "stop", "Stop the server daemon"
|
data/lib/servitude/daemon.rb
CHANGED
@@ -56,9 +56,11 @@ module Servitude
|
|
56
56
|
def status
|
57
57
|
if process_exists?
|
58
58
|
puts "#{Servitude::APP_NAME} process running with PID: #{pid}"
|
59
|
+
true
|
59
60
|
else
|
60
61
|
puts "#{Servitude::APP_NAME} process does not exist"
|
61
62
|
prompt_and_remove_pid_file if pid_file_exists?
|
63
|
+
false
|
62
64
|
end
|
63
65
|
end
|
64
66
|
|
data/lib/servitude/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: servitude
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Harrelson
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|