Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Beaneater test
beanstalk =['localhost:11300'])
#=> <Beaneater::Pool:0x007fe25c1d2f40 @connections=[#<Beaneater::Connection host="localhost" port=11300>]>
t = beanstalk.tubes['tester']
#=> <Beaneater::Tube name="tester">
t.put "5"
#=> {:status=>"INSERTED", :body=>nil, :id=>"1", :connection=>#<Beaneater::Connection host="localhost" port=11300>}
j = t.peek :ready
#=> <Beaneater::Job id=1 body="5">
#=> "5"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.