Sha256: d95621e4525273fda3948c7495dfabb2f53c966cb36ebfa4eeab17ca0ed3a82b

Contents?: true

Size: 165 Bytes

Versions: 2

Compression:

Stored size: 165 Bytes

Contents

module QC
  class AutoScale

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

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

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
heroku-qc-autoscale-0.0.2 lib/qc/auto_scale.rb
heroku-qc-autoscale-0.0.1 lib/qc/auto_scale.rb