lib/quebert/backend/beanstalk.rb
def drain!
        while peek(:ready) do
          reserve_without_controller.delete
        end
        while peek(:delayed) do
          reserve_without_controller.delete
        end
        while peek(:buried) do
          kick
          reserve_without_controller.delete
        end
      end
# For testing purposes... I think there's a better way to do this though.
For testing purposes... I think there's a better way to do this though.
For testing purposes ... I think there ' s a better way to do this though .
def drain!
        while peek(:ready) do
          reserve_without_controller.delete
        end
        while peek(:delayed) do
          reserve_without_controller.delete
        end
        while peek(:buried) do
          kick
          reserve_without_controller.delete
        end
      end
def drain! while peek ( :ready ) do reserve_without_controller . delete end while peek ( :delayed ) do reserve_without_controller . delete end while peek ( :buried ) do kick reserve_without_controller . delete end end
For testing purposes...
For testing purposes ...