diff options
author | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-03-07 18:56:37 -0800 |
---|---|---|
committer | Jay Mundrawala <jdmundrawala@gmail.com> | 2015-03-20 14:38:04 -0700 |
commit | 680294800ad003c745c41f0b08e99750ffacf558 (patch) | |
tree | 806a1f155d1f64a0167df0e8652e9a95b6226172 /lib | |
parent | af4a97f05ae08f2c9e437b92bdbbde0c2256d610 (diff) | |
download | chef-680294800ad003c745c41f0b08e99750ffacf558.tar.gz |
Added module_name to dsc_resource
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/resource/dsc_resource.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/chef/resource/dsc_resource.rb b/lib/chef/resource/dsc_resource.rb index e9d9250476..912b683434 100644 --- a/lib/chef/resource/dsc_resource.rb +++ b/lib/chef/resource/dsc_resource.rb @@ -42,6 +42,14 @@ class Chef end
end
+ def module_name(value=nil)
+ if value
+ @module_name = value
+ else
+ @module_name
+ end
+ end
+
def property(property_name, value=nil)
if not property_name.is_a?(Symbol)
raise TypeError, "A property name of type Symbol must be specified, '#{property_name.to_s}' of type #{property_name.class.to_s} was given"
|