Compare commits

..

No commits in common. "c21f175217d4023af305387a1729dbfae60deb5e" and "3a8d9239b2f3c8481cdd495bb0b26d0c7d403cec" have entirely different histories.

2 changed files with 3 additions and 26 deletions

View file

@ -24,7 +24,7 @@ test:
install:
install \
-m 755 \
bin/mfm \
bin/code-preloader \
$(PREFIX)/bin
.PHONY: spec test build all prepare install

View file

@ -94,34 +94,11 @@ module GX
exit(1)
end
## PASS 1
file_data = File.read(config_path)
file_patched = Crinja.render(
file_data,
{
"env" => ENV.to_h,
"mfm" => {
"global" => {"mount_point_base" => "" }
}
}
)
root = Models::RootConfig.from_yaml(file_patched)
mount_point_base_safe = root.global.mount_point_base
raise Models::InvalidMountpointError.new("Invalid global mount point") if mount_point_base_safe.nil?
## PASS 2
file_patched = Crinja.render(
file_data,
{
"env" => ENV.to_h,
"mfm" => {
"global" => {"mount_point_base" => mount_point_base_safe }
}
}
)
file_patched = Crinja.render(file_data, {"env" => ENV.to_h})
root = Models::RootConfig.from_yaml(file_patched)
mount_point_base_safe = root.global.mount_point_base
raise Models::InvalidMountpointError.new("Invalid global mount point") if mount_point_base_safe.nil?