summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Mundrawala <jdmundrawala@gmail.com>2015-03-07 19:01:42 -0800
committerJay Mundrawala <jdmundrawala@gmail.com>2015-03-20 14:38:04 -0700
commitc290d11a22b3f90f0e21bccc9e919f4057db42f9 (patch)
tree6670a0f8470c59823477170b16ba26212258840e
parent680294800ad003c745c41f0b08e99750ffacf558 (diff)
downloadchef-c290d11a22b3f90f0e21bccc9e919f4057db42f9.tar.gz
dsc_resource provider honors module_name is provided
dsc_resource "xSmbShare" do resource :xSmbShare module_name :xSmbShare property :Name, 'SMBShare1' property :Path, 'C:\Users\vagrant' property :Ensure, 'Present' end This is much faster to execute as we do not have to get a list of all the resources
-rw-r--r--lib/chef/provider/dsc_resource.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/provider/dsc_resource.rb b/lib/chef/provider/dsc_resource.rb
index fa4901552a..a46e044c23 100644
--- a/lib/chef/provider/dsc_resource.rb
+++ b/lib/chef/provider/dsc_resource.rb
@@ -32,6 +32,7 @@ class Chef
super
@new_resource = new_resource
@resource_converged = false
+ @module_name = new_resource.module_name
end
def action_run