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

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

Yields:

  • (_self)

Yield Parameters:

  • _self (Autoscale)

    the object that the method was called on



15
16
17
# File 'lib/heroku-qc-autoscale.rb', line 15

def self.config(&block)
  yield(self)
end

.connect_timeoutObject



19
20
21
# File 'lib/heroku-qc-autoscale.rb', line 19

def self.connect_timeout
  @@connect_timeout||5
end

.read_timeoutObject



23
24
25
# File 'lib/heroku-qc-autoscale.rb', line 23

def self.read_timeout
  @@read_timeout||15
end

.write_timeoutObject



27
28
29
# File 'lib/heroku-qc-autoscale.rb', line 27

def self.write_timeout
  @@write_timeout||15
end