Sha256: ef2dd3d97bbe7767f8d8ed003a41090207c02d2b2b072fd9f4a6d837489478a3
Contents?: true
Size: 740 Bytes
Versions: 2
Compression:
Stored size: 740 Bytes
Contents
require 'active_support/concern' require 'active_support/callbacks' require 'active_support/core_ext/module' require 'queue_classic' require 'heroku-api' require "heroku-qc-autoscale/version" require "qc/callbacks" require "qc/auto_scale" require "heroku/scaler" module Heroku module QC module Autoscale mattr_accessor :api_key, :app, :mock, :scale, :active def self.config(&block) yield(self) activate if active == true end def self.activate ::QC::Queue.send(:include, ::QC::QueueCallbacks) end def self.heroku_params { api_key: self.api_key || ENV['HEROKU_API_KEY'], mock: self.mock || false } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
heroku-qc-autoscale-0.0.2 | lib/heroku-qc-autoscale.rb |
heroku-qc-autoscale-0.0.1 | lib/heroku-qc-autoscale.rb |