summaryrefslogtreecommitdiff
path: root/lib/chef/provider/git.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-03-05 14:04:59 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-03-05 14:04:59 -0800
commit50f820590d0e5b864fd9ace7fc940609ef1c6fcd (patch)
tree6b59e9c192471e81040f9a9318c827d69e8c86b5 /lib/chef/provider/git.rb
parent7d9696554ec2a9accb66371f23d86a9601ec45e9 (diff)
downloadchef-50f820590d0e5b864fd9ace7fc940609ef1c6fcd.tar.gz
make deploy provider support nil
necessary edits to protect deploy provider and git provider when the resource parameters are reset to nil. also clean up the use of @new_resource in the deploy provider.
Diffstat (limited to 'lib/chef/provider/git.rb')
-rw-r--r--lib/chef/provider/git.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/chef/provider/git.rb b/lib/chef/provider/git.rb
index 8418f22933..693dd3f2b2 100644
--- a/lib/chef/provider/git.rb
+++ b/lib/chef/provider/git.rb
@@ -39,6 +39,10 @@ class Chef
end
end
+ def additional_remotes
+ new_resource.additional_remotes || {}
+ end
+
def define_resource_requirements
# Parent directory of the target must exist.
requirements.assert(:checkout, :sync) do |a|