Implement source keyword feature for recipes
This commit is contained in:
@@ -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