summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordheerajd-msys <dheeraj.dubey@msystechnologies.com>2019-01-29 15:22:08 +0530
committerTim Smith <tsmith@chef.io>2019-01-29 11:33:29 -0800
commit14012d2d8671d2cbce4621bcacf0c551663603a1 (patch)
treea7d15214fc936c2aba60ebe61e8bd6e08e9c8848
parentf310bc6f7a891865f5c0af0509384e93c3bbf41b (diff)
downloadchef-14012d2d8671d2cbce4621bcacf0c551663603a1.tar.gz
fix typo and add yard comment
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
-rw-r--r--lib/chef/provider/git.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/chef/provider/git.rb b/lib/chef/provider/git.rb
index f43e435464..a4adf13c9d 100644
--- a/lib/chef/provider/git.rb
+++ b/lib/chef/provider/git.rb
@@ -341,12 +341,16 @@ class Chef
def sha_hash?(string)
string =~ /^[0-9a-f]{40}$/
end
+ # Returns a message for sensitive repository URL if sensitive is true otherwise
+ # repository URL is returned
+ # @return [String]
def repo_url
if new_resource.sensitive
- "**Supressed Sensitive URL**"
+ "**Suppressed Sensitive URL**"
else
new_resource.repository
+ end
end
end
end