diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2013-11-06 16:05:54 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2013-11-11 12:20:56 -0800 |
commit | 1eb4ae02a49ba7dfee8e65fcd26777c9098329a7 (patch) | |
tree | 5b00458c1000d280f3aa3e9aecac4083817ebadd /lib/chef/provider/template.rb | |
parent | fdb52d2ea01b232efd9011e4315277c03623115d (diff) | |
download | chef-1eb4ae02a49ba7dfee8e65fcd26777c9098329a7.tar.gz |
OC-10380: add polymorphism
Diffstat (limited to 'lib/chef/provider/template.rb')
-rw-r--r-- | lib/chef/provider/template.rb | 8 |
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 |