Sha256: 900944788ea8033034d887be0ee83e842bb98bc484e06838ac287967d3515ffd

Contents?: true

Size: 1.11 KB

Versions: 2

Compression:

Stored size: 1.11 KB

Contents

# TODO: Strip this out eventually so we can run without rubygems
require 'rubygems'

require File.dirname(__FILE__) + '/daemon_kit/core_ext'

$:.unshift( File.dirname(__FILE__).to_absolute_path ) unless
  $:.include?( File.dirname(__FILE__).to_absolute_path )

module DaemonKit
  VERSION = '0.1.7.5'

  autoload :Initializer,    'daemon_kit/initializer'
  autoload :Application,    'daemon_kit/application'
  autoload :Arguments,      'daemon_kit/arguments'
  autoload :Config,         'daemon_kit/config'
  autoload :Safety,         'daemon_kit/safety'
  autoload :PidFile,        'daemon_kit/pid_file'
  autoload :AbstractLogger, 'daemon_kit/abstract_logger'

  autoload :Cron,   'daemon_kit/cron'
  autoload :Jabber, 'daemon_kit/jabber'
  autoload :AMQP,   'daemon_kit/amqp'
  autoload :Nanite, 'daemon_kit/nanite'

  class << self
    def logger
      @logger
    end

    def logger=( logger )
      @logger = logger
    end

    def root
      DAEMON_ROOT
    end

    def env
      DAEMON_ENV
    end

    def framework_root
      @framework_root ||= File.join( File.dirname(__FILE__), '..' ).to_absolute_path
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
kennethkalmer-daemon-kit-0.1.7.5 lib/daemon_kit.rb
daemon-kit-0.1.7.5 lib/daemon_kit.rb