module Postburner
Constants
- VERSION
Public Class Methods
connected() { |connection| ... }
click to toggle source
# File lib/postburner.rb, line 14 def self.connected if block_given? begin yield connection ensure connection.close if connection end else connection end end
connection()
click to toggle source
# File lib/postburner.rb, line 6 def self.connection @_connection ||= Backburner::Connection.new( Backburner.configuration.beanstalk_url ) @_connection.reconnect! unless @_connection.connected? @_connection end
remove_all!(confirm)
click to toggle source
# File lib/postburner.rb, line 26 def self.remove_all!(confirm) return unless confirm == "CONFIRM" # TODO end