diff --git a/src/service/environment.cr b/src/service/environment.cr index 195f5ac..e64b917 100644 --- a/src/service/environment.cr +++ b/src/service/environment.cr @@ -46,7 +46,7 @@ class Environment file_path = "#{path}/#{child}" begin - environment = Environment.new SpecParser.parse(file_path).not_nil! + environment = Environment.new SpecParser.parse(File.read file_path).not_nil! rescue e STDERR << "error loading #{file_path}: " << e << "\n" # FIXME: Print stacktrace? Debug mode? diff --git a/src/service/service.cr b/src/service/service.cr index 0585793..9c8c9f9 100644 --- a/src/service/service.cr +++ b/src/service/service.cr @@ -302,7 +302,7 @@ class Service end begin - specs = SpecParser.parse("#{path}/#{child}").not_nil! + specs = SpecParser.parse(File.read "#{path}/#{child}").not_nil! rescue next end diff --git a/src/service/service_definition.cr b/src/service/service_definition.cr index babe81b..6309652 100644 --- a/src/service/service_definition.cr +++ b/src/service/service_definition.cr @@ -64,7 +64,7 @@ class ServiceDefinition def self.load(path) Dir.each_child path do |child| if child.match /\.spec$/ - @@all << ServiceDefinition.new SpecParser.parse("#{path}/#{child}").not_nil! + @@all << ServiceDefinition.new SpecParser.parse(File.read "#{path}/#{child}").not_nil! else next end