SpecParser API update.
parent
a207e47ce5
commit
2eb87bdf25
|
@ -250,7 +250,7 @@ class Package::Context
|
||||||
end
|
end
|
||||||
|
|
||||||
def read_configuration(filename : String)
|
def read_configuration(filename : String)
|
||||||
specs = SpecParser.parse(filename)
|
specs = SpecParser.parse(File.read(filename))
|
||||||
|
|
||||||
specs.assignments.each do |key, value|
|
specs.assignments.each do |key, value|
|
||||||
case key
|
case key
|
||||||
|
|
|
@ -91,7 +91,7 @@ class Package::Recipe
|
||||||
end
|
end
|
||||||
|
|
||||||
def initialize(@context, filename : String)
|
def initialize(@context, filename : String)
|
||||||
specs = SpecParser.parse filename, {
|
specs = SpecParser.parse File.read(filename), {
|
||||||
"pkg" => fake_root_directory,
|
"pkg" => fake_root_directory,
|
||||||
"prefix" => prefix
|
"prefix" => prefix
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue