Implement source keyword feature for recipes
This commit is contained in:
1 parent
65643e065e
commit
c7295fb977
4 files changed
+30
No files matched your search
@@ -24,6 +24,13 @@ module Producer
|
||||
instance_eval &block
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
|
||||
def source(filepath)
|
||||
instance_eval File.read("./#{filepath}.rb")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user