Removed .spec-related upstreamed code.
parent
832edb5f8d
commit
ef774194dc
|
@ -30,56 +30,6 @@ module FileUtils
|
|||
end
|
||||
end
|
||||
|
||||
# FIXME: This could probably be shorter and less stupid with a macro or two.
|
||||
class SpecFileParser::StringContainer
|
||||
def as_s : String
|
||||
value
|
||||
end
|
||||
def as_a_or_s : Array(String)
|
||||
# FIXME: We should probably be splitting the string around comas.
|
||||
[value]
|
||||
end
|
||||
def as_s_or_ls : String
|
||||
value
|
||||
end
|
||||
end
|
||||
|
||||
class SpecFileParser::LongStringContainer
|
||||
def as_s : String
|
||||
raise "short string expected, got multiline text section"
|
||||
end
|
||||
def as_a_or_s : Array(String)
|
||||
raise "list or string expected, got multiline text section"
|
||||
end
|
||||
def as_s_or_ls : String
|
||||
value
|
||||
end
|
||||
end
|
||||
|
||||
class SpecFileParser::ArrayContainer
|
||||
def as_s : String
|
||||
raise "string expected, got list"
|
||||
end
|
||||
def as_a_or_s : Array(String)
|
||||
value
|
||||
end
|
||||
def as_s_or_ls : String
|
||||
raise "string or multiline text section expected, got list"
|
||||
end
|
||||
end
|
||||
|
||||
class SpecFileParser::SectionContainer
|
||||
def as_s : String
|
||||
raise "string expected, got section"
|
||||
end
|
||||
def as_a_or_s : Array(String)
|
||||
raise "list or string expected, got section"
|
||||
end
|
||||
def as_s_or_ls : String
|
||||
raise "string or multiline text section expected, got section"
|
||||
end
|
||||
end
|
||||
|
||||
class Package::Recipe
|
||||
@context : Context
|
||||
|
||||
|
|
Reference in New Issue