summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2017-09-25 15:37:26 -0700
committerTim Smith <tsmith@chef.io>2017-09-28 11:04:54 -0700
commited3750c1d9f8a677b891c59203e828cbfccc345e (patch)
treef14a956d2351aa62075ef16d59500e4ea206a596
parent0cfb61b52d5a1fb61c94c37cea6d4b1eba36f4a9 (diff)
downloadchef-ed3750c1d9f8a677b891c59203e828cbfccc345e.tar.gz
Add a few yard comments
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/zypper_repository.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/chef/provider/zypper_repository.rb b/lib/chef/provider/zypper_repository.rb
index 257cc7da61..14d592debe 100644
--- a/lib/chef/provider/zypper_repository.rb
+++ b/lib/chef/provider/zypper_repository.rb
@@ -68,10 +68,13 @@ class Chef
alias_method :action_remove, :action_delete
# zypper repos are allowed to have spaces in the names
+ # @return [String] escaped repo string
def escaped_repo_name
Shellwords.escape(new_resource.repo_name)
end
+ # determine if a template file is available in the current run
+ # @return [Boolean] template file exists or doesn't
def template_available?(path)
!path.nil? && run_context.has_template_in_cookbook?(new_resource.cookbook_name, path)
end