module EzNemo

Constants

Version

Public Class Methods

config() click to toggle source

see self.load_config

# File lib/eznemo/config.rb, line 14
def self.config
  @config
end
datastore() click to toggle source

@return [Object] data storage object; a shared instance

# File lib/eznemo/datastore.rb, line 4
def self.datastore
  @datastore ||= DataStore.new
end
load_config(path) click to toggle source

Load YAML config file @param path [String] config file @return [Object] config; a shared instance

# File lib/eznemo/config.rb, line 8
def self.load_config(path)
  raise 'config file missing' unless path
  @config ||= YAML.load_file(path)
end
logger() click to toggle source
# File lib/eznemo/logger.rb, line 10
def self.logger
  @logger ||= NullLogger.new()
end
logger=(logger) click to toggle source
# File lib/eznemo/logger.rb, line 6
def self.logger=(logger)
  @logger = logger
end
monitor() click to toggle source

The shared Monitor instance @return [EzNemo::Monitor]

# File lib/eznemo/monitor.rb, line 5
def self.monitor
  @monitor ||= Monitor.new
end