Sha256: 9fa4c532d8427ef9e1ad26c84bf6bfad73fb459ab5f9bf363e08d138ee5108c0

Contents?: true

Size: 592 Bytes

Versions: 2

Compression:

Stored size: 592 Bytes

Contents

require 'active_support/all'

require File.join(File.dirname(__FILE__), 'backgrounded', 'class_methods')
require File.join(File.dirname(__FILE__), 'backgrounded', 'handler', 'inprocess_handler')

Object.send(:include, Backgrounded::ClassMethods)

module Backgrounded
  class << self
    attr_accessor :logger, :handler
  end
end

# default handler to the basic in process handler
Backgrounded.handler = Backgrounded::Handler::InprocessHandler.new

# configure default logger to standard out with info log level
Backgrounded.logger = Logger.new STDOUT
Backgrounded.logger.level = Logger::INFO

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
backgrounded-0.7.3 lib/backgrounded.rb
backgrounded-0.7.2 lib/backgrounded.rb