Module: Autoscale
- Defined in:
- lib/autoscale/heroku.rb,
lib/heroku-qc-autoscale.rb,
lib/autoscale/queue_classic/callbacks.rb
Defined Under Namespace
Modules: QueueClassic Classes: Heroku
Class Method Summary collapse
-
.activate! ⇒ Object
activate QC queue callbacks.
-
.config {|_self| ... } ⇒ Object
config and activate QC bindings.
- .connect_timeout ⇒ Object
- .read_timeout ⇒ Object
- .write_timeout ⇒ Object
Class Method Details
.activate! ⇒ Object
activate QC queue callbacks
32 33 34 |
# File 'lib/heroku-qc-autoscale.rb', line 32 def self.activate! QC::Queue.send(:include, Autoscale::QueueClassic::QueueCallbacks) end |
.config {|_self| ... } ⇒ Object
config and activate QC bindings
15 16 17 |
# File 'lib/heroku-qc-autoscale.rb', line 15 def self.config(&block) yield(self) end |
.connect_timeout ⇒ Object
19 20 21 |
# File 'lib/heroku-qc-autoscale.rb', line 19 def self.connect_timeout @@connect_timeout||5 end |
.read_timeout ⇒ Object
23 24 25 |
# File 'lib/heroku-qc-autoscale.rb', line 23 def self.read_timeout @@read_timeout||15 end |
.write_timeout ⇒ Object
27 28 29 |
# File 'lib/heroku-qc-autoscale.rb', line 27 def self.write_timeout @@write_timeout||15 end |