Module: Postburner
- Defined in:
- lib/postburner.rb,
lib/postburner/tube.rb,
lib/postburner/engine.rb,
lib/postburner/version.rb,
app/models/postburner/job.rb,
app/models/postburner/mailer.rb,
app/jobs/postburner/application_job.rb,
app/models/postburner/application_record.rb,
app/helpers/postburner/application_helper.rb,
app/mailers/postburner/application_mailer.rb,
app/controllers/postburner/jobs_controller.rb,
app/controllers/postburner/static_controller.rb,
app/controllers/postburner/application_controller.rb
Defined Under Namespace
Modules: ApplicationHelper
Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, Engine, InstallGenerator, Job, JobsController, Mailer, StaticController, Tube
Constant Summary
collapse
- VERSION =
'0.8.0'
Class Method Summary
collapse
Class Method Details
.connected ⇒ Object
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/postburner.rb', line 15
def self.connected
if block_given?
begin
yield connection
ensure
connection.close if connection
end
else
connection
end
end
|
.connection ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/postburner.rb', line 7
def self.connection
@_connection ||= Backburner::Connection.new(
Backburner.configuration.beanstalk_url
)
@_connection.reconnect! unless @_connection.connected?
@_connection
end
|
.remove_all!(confirm) ⇒ Object
27
28
29
30
31
|
# File 'lib/postburner.rb', line 27
def self.remove_all!(confirm)
return unless confirm == "CONFIRM"
end
|