Fixes service loading issue in gen-config.

This commit is contained in:
Luka Vandervelden 2019-10-27 22:14:11 +01:00
parent ff4c1cc08d
commit 19f825dba4

View File

@ -48,9 +48,9 @@ class GenConfig::Context
end
def generate(template, target : String, options : Hash(String, Variables))
Environment.load ENVIRONMENTS_DIRECTORY
ServiceDefinition.load SERVICES_DIRECTORY
Service.load RC_DIRECTORY
Environment.load ENVIRONMENTS_DIRECTORY
target_file = File.open target, "w"