Bugfixes related to a dependency’s API changes.

This commit is contained in:
Luka Vandervelden 2019-10-19 18:24:38 +02:00
parent ca013e37d8
commit 794ffe16fa
3 changed files with 3 additions and 3 deletions

View File

@ -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?

View File

@ -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

View File

@ -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