summaryrefslogtreecommitdiff
path: root/lib/chef/provider/template.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@opscode.com>2013-03-20 14:41:32 -0700
committerLamont Granquist <lamont@opscode.com>2013-03-20 14:41:32 -0700
commit0e94bb48a688e7bb6b5488cb583af470d18acdda (patch)
tree14ddbb5ceb61dfe962f723bd4fb02227d4aa4cdf /lib/chef/provider/template.rb
parent04953a806b2b1bbb47d1b9f786e1b25c3d4d9ccc (diff)
downloadchef-0e94bb48a688e7bb6b5488cb583af470d18acdda.tar.gz
standardizing on exists?
Diffstat (limited to 'lib/chef/provider/template.rb')
-rw-r--r--lib/chef/provider/template.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/provider/template.rb b/lib/chef/provider/template.rb
index 064f9fde74..eed65bd26a 100644
--- a/lib/chef/provider/template.rb
+++ b/lib/chef/provider/template.rb
@@ -38,7 +38,7 @@ class Chef
super
requirements.assert(:create, :create_if_missing) do |a|
- a.assertion { ::File::exist?(content.template_location) }
+ a.assertion { ::File::exists?(content.template_location) }
a.failure_message "Template source #{content.template_location} could not be found."
a.whyrun "Template source #{content.template_location} does not exist. Assuming it would have been created."
a.block_action!