rabbit-wq 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b7ad13a6db659b801475194590ddbb816422ed1
4
- data.tar.gz: 147bd30a92fc0e1c65f519191b4c9d86ab155db2
3
+ metadata.gz: 2567a7603af0d8e5b325f79a954b886d23f8a57a
4
+ data.tar.gz: a2a959493098b42965c5c60bcd3c710cfdc9452f
5
5
  SHA512:
6
- metadata.gz: bfa30cc0008cdabe405dabe30f3901c38a550f2aee6a7e9b0f5bb51f0cc7b42bafeecbf41c8901580c97a34e30935528ace5234a53c041975cf110796d1c0c6d
7
- data.tar.gz: 7fb846b76b668c9c88441b4a12ab460ddbda17a5a432209e2a183e0595f994fd51afaa4819673d14e483ba6a4f2f06b4269e5887132d7d81398b1d4ff3b560b6
6
+ metadata.gz: 7269f386abf1bb948ae772927ae2bd1965c258f86d8788395988122a5989f47740bfc4521aeae9d0f983a35599b8dae5b889eaf3f199e3d24e6f3e44dbfca64b
7
+ data.tar.gz: 7028c4112949da07e0971a7e69e776080b69d5a082cd2bbfeb839f82f683bbf235269c8ee1906ccb3f18a467373676c407221dd90295352aa8385259acbfca22
data/lib/rabbit_wq/cli.rb CHANGED
@@ -63,10 +63,12 @@ options:
63
63
  when "status"
64
64
  Trollop::options do
65
65
  opt :pid, "The path for the PID file", :type => String, :default => DEFAULT_PID_PATH
66
+ opt :quiet, "Do not prompt to remove an old PID file", :type => :boolean, :default => false, :short => '-q'
66
67
  end
67
68
  when "stop"
68
69
  Trollop::options do
69
70
  opt :pid, "The path for the PID file", :type => String, :default => DEFAULT_PID_PATH
71
+ opt :quiet, "Do not prompt to remove an old PID file", :type => :boolean, :default => false, :short => '-q'
70
72
  end
71
73
  else
72
74
  Trollop::die "unknown command #{cmd.inspect}"
@@ -87,7 +87,11 @@ module RabbitWQ
87
87
  end
88
88
 
89
89
  def kill_process
90
- abort "#{APP_NAME} process is not running" unless process_exists?
90
+ unless process_exists?
91
+ $stdout.write "#{APP_NAME} process is not running"
92
+ return
93
+ end
94
+
91
95
  $stdout.write "Attempting to stop #{APP_NAME} process #{pid}..."
92
96
  Process.kill INT, pid
93
97
  iteration_num = 0
@@ -1,3 +1,3 @@
1
1
  module RabbitWQ
2
- VERSION = "1.8.0"
2
+ VERSION = "1.9.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.8.0
4
+ version: 1.9.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-10-24 00:00:00.000000000 Z
11
+ date: 2014-12-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -162,7 +162,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
162
  version: '0'
163
163
  requirements: []
164
164
  rubyforge_project:
165
- rubygems_version: 2.2.1
165
+ rubygems_version: 2.4.4
166
166
  signing_key:
167
167
  specification_version: 4
168
168
  summary: A work queue built on RabbitMQ and Celluloid.