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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33c45a8d47c20ccfdc71c882ca97942af3380764
4
- data.tar.gz: d1e4fbfc12659eaf3bdb2b57c2d61aa674b36dd1
3
+ metadata.gz: 8797f541827e4accebaddbbd1a40e78603225489
4
+ data.tar.gz: 48b73b9c1630653ff2fcee45ee335d11e09cbebd
5
5
  SHA512:
6
- metadata.gz: 95a642fa7529f4b25af2883ecf8b6aae0a763a0245dfead9501c868fe41e00fd84e19477164b5753745445a023c825b038f1b382b12b6915b9302947cbae58dc
7
- data.tar.gz: da862510a46529d10b5b1cfadf5a4e60364eb3236881e5b3ccaf85cac92ce32ff4b6ba0eae6324ef55af18d2a218923e4ae0de175da7771c4d7efae0d1831a84
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"
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Servitude
2
- VERSION = "0.7.1"
2
+ VERSION = "0.8.0"
3
3
  end
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.7.1
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-16 00:00:00.000000000 Z
11
+ date: 2014-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler