Skip to content
Browse files

Merge pull request #24 from ripienaar/catstomp_deprecation

Fix deprecation warnings
  • Loading branch information...
2 parents abd3610 + 6af160a commit fef455a32fc7f35bdc1191eb7960c894e8bd11dc @gmallard gmallard committed Dec 11, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 bin/catstomp
View
6 bin/catstomp
@@ -18,13 +18,13 @@ begin; require 'rubygems'; rescue; end
require 'stomp'
#
-# This simple script is inspired by the netcat utility. It allows you to send
+# This simple script is inspired by the netcat utility. It allows you to publish
# input into this process to stomp destination.
#
# Usage: catstomp (destination-name)
#
# Example: ls | catstomp /topic/foo
-# Would send the output of the ls command to the stomp destination /topic/foo
+# Would publish the output of the ls command to the stomp destination /topic/foo
#
begin
@@ -47,7 +47,7 @@ begin
@headers['reply-to'] = $*[1] if $*[1] != nil
STDIN.each_line { |line|
- @conn.send @destination, line, @headers
+ @conn.publish @destination, line, @headers
}
rescue

0 comments on commit fef455a

Please sign in to comment.
Something went wrong with that request. Please try again.