lib/rubysermon.rb
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}/.."
 
def91ab1
 	class App
 
8cbb7fe5
 		@config_path = "#{APP_PATH}/config.json"
c61af953
 		@config
 		@loader
 
def91ab1
 		def initialize
 
 		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