Sha256: fdbb99ea315e8752316cd100eebabee03ed2184d223baf749ee499fd9fd69118

Contents?: true

Size: 548 Bytes

Versions: 1

Compression:

Stored size: 548 Bytes

Contents

require 'active_support/concern'
require 'active_support/callbacks'
require 'active_support/core_ext/module'
require 'queue_classic'
require 'heroku-api'

require "autoscale/heroku"
require "autoscale/queue_classic/callbacks"
require "heroku-qc-autoscale/version"

module Autoscale
  mattr_accessor :api_key, :app, :mock, :scale

  # config and activate QC bindings
  def self.config(&block)
    yield(self)
  end

  # activate QC queue callbacks
  def self.activate!
    QC::Queue.send(:include, Autoscale::QueueClassic::QueueCallbacks)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
heroku-qc-autoscale-0.0.4 lib/heroku-qc-autoscale.rb