Bugfixes related to a dependency’s API changes.
parent
ca013e37d8
commit
794ffe16fa
|
@ -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?
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue