Class: Loader
Instance Method Summary collapse
-
#initialize(base_path, config_config_path) ⇒ Loader
constructor
A new instance of Loader.
- #load_and_run ⇒ Object
Constructor Details
#initialize(base_path, config_config_path) ⇒ Loader
Returns a new instance of Loader.
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/maws/loader.rb', line 12 def initialize(base_path, config_config_path) @base_path = base_path @cc_path = config_config_path @commands_path = File.("commands/", File.dirname(__FILE__)) # stores all config @config = mash @command = nil Loader.config_file_must_exist!('main', @cc_path) @command_options_parser = CommandOptionsParser.new(@config) end |