summaryrefslogtreecommitdiff
path: root/lib/chef/provider/remote_file.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2013-11-06 16:05:54 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2013-11-11 12:20:56 -0800
commit1eb4ae02a49ba7dfee8e65fcd26777c9098329a7 (patch)
tree5b00458c1000d280f3aa3e9aecac4083817ebadd /lib/chef/provider/remote_file.rb
parentfdb52d2ea01b232efd9011e4315277c03623115d (diff)
downloadchef-1eb4ae02a49ba7dfee8e65fcd26777c9098329a7.tar.gz
OC-10380: add polymorphism
Diffstat (limited to 'lib/chef/provider/remote_file.rb')
-rw-r--r--lib/chef/provider/remote_file.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/chef/provider/remote_file.rb b/lib/chef/provider/remote_file.rb
index d62f4aa13c..ed99c0bb84 100644
--- a/lib/chef/provider/remote_file.rb
+++ b/lib/chef/provider/remote_file.rb
@@ -39,6 +39,14 @@ class Chef
super
end
+ private
+
+ def managing_content?
+ return true if @new_resource.checksum
+ return true if !@new_resource.source.nil? && @action != :create_if_missing
+ false
+ end
+
end
end
end