Sha256: b6642486828f4867a2b0e9edaeb80ad9d184d6e73a87d2addfc29023fc6ce6da

Contents?: true

Size: 714 Bytes

Versions: 4

Compression:

Stored size: 714 Bytes

Contents

require 'heroku/api'
require 'logger'
require 'excon'
require 'timers'
require 'benchmark'

module Heroku::Scalr
  extend self

  # @see Heroku::Scalr::Runner#initialize
  def run!(*args)
    Heroku::Scalr::Runner.new(*args).run!
  end

  # @param [Hash] opts
  # @options opts [String] :log_file custom log file path
  # @options opts [String] :log_level custom log level
  def configure(opts = {})
    @logger = Logger.new(opts[:log_file]) if opts[:log_file]
    logger.level = opts[:log_level] if opts[:log_level]
    self
  end

  # @return [Logger] the logger instance
  def logger
    @logger ||= Logger.new(STDOUT)
  end

end

%w|config app runner metric|.each do |name|
  require "heroku/scalr/#{name}"
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
heroku-scalr-0.2.3 lib/heroku/scalr.rb
heroku-scalr-0.2.2 lib/heroku/scalr.rb
heroku-scalr-0.2.1 lib/heroku/scalr.rb
heroku-scalr-0.2.0 lib/heroku/scalr.rb