rabbit-wq 1.7.0 → 1.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: c97ac243defa2aac2f23a698f956eac51dfa8574
4
- data.tar.gz: 3339d19f9f1d53523e05343c2e69e906111f3afb
3
+ metadata.gz: 7b7ad13a6db659b801475194590ddbb816422ed1
4
+ data.tar.gz: 147bd30a92fc0e1c65f519191b4c9d86ab155db2
5
5
  SHA512:
6
- metadata.gz: a411faf8ad4c6a2fc5c79059898172754f0661f42ce7dd35db00709c487b322c2ac94ef0c2cdabb18974c5f7de0fdb38b67ffae7c1e111966680ae4ae69dbb27
7
- data.tar.gz: f4042f81efaa480cdb975f1e8df376e1d504b1d934a02888150085d124f0eeb875df25387f161c4e430768c989cdfc2a096301dbae2d390f0b8962a644210422
6
+ metadata.gz: bfa30cc0008cdabe405dabe30f3901c38a550f2aee6a7e9b0f5bb51f0cc7b42bafeecbf41c8901580c97a34e30935528ace5234a53c041975cf110796d1c0c6d
7
+ data.tar.gz: 7fb846b76b668c9c88441b4a12ab460ddbda17a5a432209e2a183e0595f994fd51afaa4819673d14e483ba6a4f2f06b4269e5887132d7d81398b1d4ff3b560b6
data/lib/rabbit_wq/cli.rb CHANGED
@@ -120,7 +120,8 @@ options:
120
120
  end
121
121
 
122
122
  def status
123
- RabbitWQ::ServerDaemon.new( options ).status
123
+ result = RabbitWQ::ServerDaemon.new( options ).status
124
+ at_exit { exit result }
124
125
  end
125
126
 
126
127
  end
@@ -46,13 +46,14 @@ module RabbitWQ
46
46
  end
47
47
 
48
48
  def status
49
- out = "#{APP_NAME} "
49
+ $stdout.print "#{APP_NAME} "
50
50
  if process_exists?
51
- out << "process running with PID: #{pid}"
51
+ $stdout.puts "process running with PID: #{pid}"
52
+ true
52
53
  else
53
- out << "process does not exist"
54
+ $stdout.puts "process does not exist"
55
+ false
54
56
  end
55
- $stdout.puts out
56
57
  end
57
58
 
58
59
  protected
@@ -1,3 +1,3 @@
1
1
  module RabbitWQ
2
- VERSION = "1.7.0"
2
+ VERSION = "1.8.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit-wq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - C. Jason Harrelson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-22 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