Obsolete
/
packaging
Archived
3
0
Fork 0
This repository has been archived on 2022-01-17. You can view files and clone it, but cannot push or open issues/pull-requests.
packaging/src/package.cr

27 lines
426 B
Crystal
Raw Normal View History

2019-07-02 03:50:50 +02:00
class Package::Package
@recipe : Recipe
2019-07-02 03:50:50 +02:00
def initialize(@recipe)
end
macro inherit(attribute)
@{{attribute.var.id}} : {{attribute.type.id}}?
def {{attribute.var.id}} : {{attribute.type.id}}
@{{attribute.var.id}} || @recipe.{{attribute.var.id}}
end
end
inherit name : String
inherit version : String
# Internals
inherit fake_root_directory : String
def to_s
"<Package: #{name}-#{version}>"
2019-07-02 03:50:50 +02:00
end
end