Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix for not including enqueue message arg

  • Loading branch information...
commit 63b83be68cf8940222427ff9d29caa9b95a76da0 1 parent 9cd85b8
Craig Krigsman authored
Showing with 5 additions and 1 deletion.
  1. +1 −1  TODO.txt
  2. +4 −0 bin/amqp-enqueue
View
2  TODO.txt
@@ -1,7 +1,7 @@
[x] fix amqp-enqueue message count
[x] detect commandline ARGV when no queue is specified bring up help
[x] amqp-stat hangs when no queue specified
-[o] amqp-enqueue inspect error when message not specified
+[x] amqp-enqueue inspect error when message not specified
[o] amqp-dequeue hangs on exit
[o] setup.rb seems to install command.rb in wrong location
[o] gem create
View
4 bin/amqp-enqueue
@@ -18,6 +18,10 @@ class EnqueueCommand < AmqpUtils::Command
def execute
@queue = ARGV[0]
@message = ARGV[1]
+ unless @message
+ puts 'You need to include message'
+ exit 1
+ end
publisher = EM.spawn do |queue, message, messages, options|
if messages > 0
Please sign in to comment.
Something went wrong with that request. Please try again.