271b1a48 |
require_relative "rubysermon/version" |
def91ab1 |
require_relative "rubysermon/mod_loader"
require_relative "rubysermon/mod_template" |
c61af953 |
require_relative "rubysermon/configurator" |
271b1a48 |
module Rubysermon |
8cbb7fe5 |
LIB_PATH = File.expand_path(File.dirname(__FILE__))
APP_PATH = "#{LIB_PATH}/.." |
f0d38088 |
MOD_PATH = "#{LIB_PATH}/rubysermon/mod" |
8cbb7fe5 |
|
def91ab1 |
class App
def initialize |
1317ce83 |
@config = ""
@loader = nil
@config_path = "#{APP_PATH}/config.json" |
def91ab1 |
end
private |
c61af953 |
def config
configurator = Configurator.new(@config_path)
@config = configurator.get_settings()
end
|
def91ab1 |
def load_mod(mod_name)
begin
@loader = ModLoader.load mod_name
rescue ModLoaderException => e
$stderr = e.message
end
end
end |
271b1a48 |
end |