Permalink
Browse files

Implement the kick command.

  • Loading branch information...
1 parent d2c9803 commit 57459b4ccde1259ad4165eed0876e86b93ad0099 Keith Rarick committed Sep 19, 2008
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/beanstalk-client/connection.rb
@@ -111,6 +111,10 @@ def bury(id, pri)
:ok
end
+ def kick(n)
+ interact("kick #{n}\r\n", %w(KICKED))[0].to_i
+ end
+
def use(tube)
return tube if tube == @last_used
@last_used = interact("use #{tube}\r\n", %w(USING))[0]

0 comments on commit 57459b4

Please sign in to comment.