summaryrefslogtreecommitdiff
path: root/lib/chef/provider/template.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/template.rb
parentfdb52d2ea01b232efd9011e4315277c03623115d (diff)
downloadchef-1eb4ae02a49ba7dfee8e65fcd26777c9098329a7.tar.gz
OC-10380: add polymorphism
Diffstat (limited to 'lib/chef/provider/template.rb')
-rw-r--r--lib/chef/provider/template.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/chef/provider/template.rb b/lib/chef/provider/template.rb
index 217f9e56ec..555f4f14f0 100644
--- a/lib/chef/provider/template.rb
+++ b/lib/chef/provider/template.rb
@@ -52,6 +52,14 @@ class Chef
end
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