diff --git a/lib/shadow_puppet/manifest.rb b/lib/shadow_puppet/manifest.rb index 101b6de..5d8d438 100644 --- a/lib/shadow_puppet/manifest.rb +++ b/lib/shadow_puppet/manifest.rb @@ -119,6 +119,17 @@ def self.recipe(*methods) end end + # Access to a recipe of the class of this instance. + # + # class SampleManifest < ShadowPuppet::Manifest + # def my_recipe + # recipe :other_recipe + # end + # end + def recipe(*methods) + self.class.recipe *methods + end + # A hash describing any configuration that has been # performed on the class. Modify this hash by calling configure: #