Sha256: 1121b98f7143a2188f5b7ad91fc32ee6cf0dfa265737dd7c30751124747133dc
Contents?: true
Size: 723 Bytes
Versions: 2
Compression:
Stored size: 723 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|core_ext config app runner metric|.each do |name| require "heroku/scalr/#{name}" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
heroku-scalr-0.3.0 | lib/heroku/scalr.rb |
heroku-scalr-0.2.4 | lib/heroku/scalr.rb |