Skip to content

@bangline /beans.rb
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Beaneater test
beanstalk = Beaneater::Pool.new(['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">
j.body
#=> "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.