module Adminix

Constants

VERSION

Public Class Methods

config() click to toggle source
# File lib/adminix.rb, line 19
def self.config
  @config
end
config=(config) click to toggle source
# File lib/adminix.rb, line 15
def self.config=(config)
  @config = config
end
define_logger(source, lvl = nil) click to toggle source
# File lib/adminix.rb, line 44
def self.define_logger(source, lvl = nil)
  @logger = Logger.new(source)
  @logger.level = lvl if lvl
end
logger() click to toggle source
# File lib/adminix.rb, line 40
def self.logger
  @logger
end
os() click to toggle source
# File lib/adminix.rb, line 31
def self.os
  return @os if @os
  @os = if RUBY_PLATFORM =~ /darwin/ then 'mac'
        elsif RUBY_PLATFORM =~ /linux/ then 'linux'
        elsif RUBY_PLATFORM =~ /mswin32/ then 'windows'
        else 'unknown'
        end
end
root() click to toggle source
# File lib/adminix.rb, line 11
def self.root
  File.dirname __dir__
end
test?() click to toggle source
# File lib/adminix.rb, line 49
def self.test?
  ENV['ADMINIX_ENV'] == 'test'
end
watcher() click to toggle source
# File lib/adminix.rb, line 27
def self.watcher
  @watcher
end
watcher=(watcher) click to toggle source
# File lib/adminix.rb, line 23
def self.watcher=(watcher)
  @watcher = watcher
end