Sha256: 254d0f3c26b3cdc32e77c26ae2cb608369cd6e17493b2896f65cb37fdd612c28

Contents?: true

Size: 724 Bytes

Versions: 3

Compression:

Stored size: 724 Bytes

Contents

require 'delegate'
require 'forwardable'
require 'logger'
require 'fileutils'
require 'tsort'

module Freyr
  extend self
  OUT = STDOUT.dup

  def logger
    @logger ||= begin 
      log = Logger.new(STDOUT)
      log.level = Logger::FATAL
      log.formatter = proc do |severity, datetime, progname, msg|
        %Q{#{severity.chars.first}: #{[progname,msg].compact.join(' - ')}\n}
      end
      log
    end
  end
  
  def logger= logger
    @logger = logger
  end
end

if ARGV.include?('--trace')
  Freyr.logger.level = Logger::DEBUG
end

%w{version helpers service service_group command service_info pid_file pinger process_info rvm}.each do |f|
  require File.expand_path(File.dirname(__FILE__)+"/freyr/#{f}.rb")
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
freyr-0.5.2 lib/freyr.rb
freyr-0.5.1 lib/freyr.rb
freyr-0.5.0 lib/freyr.rb