Sha256: 64d41fd248414971bee80a551c6087910bf3a1582ee041491e6a7a164ca6048b
Contents?: true
Size: 1.23 KB
Versions: 3
Compression:
Stored size: 1.23 KB
Contents
require 'fileutils' require 'refinements' module Oxidized class OxidizedError < StandardError; end Directory = File.expand_path(File.join(File.dirname(__FILE__), '../')) require 'oxidized/version' require 'oxidized/config' require 'oxidized/config/vars' require 'oxidized/worker' require 'oxidized/nodes' require 'oxidized/manager' require 'oxidized/hook' require 'oxidized/signals' require 'oxidized/core' def self.asetus @@asetus end def self.asetus=(val) @@asetus = val end def self.config asetus.cfg end def self.logger @@logger end def self.logger=(val) @@logger = val end def self.setup_logger FileUtils.mkdir_p(Config::LOG) unless File.directory?(Config::LOG) self.logger = if config.has_key?('use_syslog') && config.use_syslog require 'syslog/logger' Syslog::Logger.new('oxidized') else require 'logger' if config.has_key?('log') Logger.new(File.expand_path(config.log)) else Logger.new($stderr) end end logger.level = Logger::INFO unless config.debug end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
oxidized-0.31.0 | lib/oxidized.rb |
oxidized-0.30.1 | lib/oxidized.rb |
oxidized-0.30.0 | lib/oxidized.rb |