lib/munge/bootstrap.rb in munge-0.5.0.beta1 vs lib/munge/bootstrap.rb in munge-0.5.0
- old
+ new
@@ -47,16 +47,27 @@
config:,
setup_string:,
rules_string:,
setup_path:,
rules_path:)
+ @setup_path = setup_path
+ @rules_path = rules_path
+
system = Munge::System.new(root_path, config)
binding.eval(setup_string, setup_path)
@app = Munge::Application.new(system)
binding.eval(rules_string, rules_path)
+ end
+
+ def root_path
+ File.dirname(@setup_path)
+ end
+
+ def config_path
+ File.join(root_path, "config")
end
attr_reader :app
end
end