Class: Autoscale::QueueClassic::ScaleObserver

Inherits:
Object
  • Object
show all
Defined in:
lib/autoscale/queue_classic/callbacks.rb

Instance Method Summary collapse

Instance Method Details

#after_delete(caller) ⇒ Object



9
10
11
# File 'lib/autoscale/queue_classic/callbacks.rb', line 9

def after_delete(caller)
  Autoscale::Heroku.down
end

#after_enqueue(caller) ⇒ Object



5
6
7
# File 'lib/autoscale/queue_classic/callbacks.rb', line 5

def after_enqueue(caller)
  Autoscale::Heroku.up
end