diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-08-11 13:30:10 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-08-12 14:02:34 -0700 |
commit | 4848c89b7cc5e4a4d4fac7c8bff962f7df69f719 (patch) | |
tree | cf1bc6d0b30f226573da88158049f1334b6ce1bd /lib/chef/resource/sudo.rb | |
parent | 798cac61accc035b51aaac25160bf1d5e9715252 (diff) | |
download | chef-4848c89b7cc5e4a4d4fac7c8bff962f7df69f719.tar.gz |
File.exists? -> File.exist?exist
Update some of these methods
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/sudo.rb')
-rw-r--r-- | lib/chef/resource/sudo.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/sudo.rb b/lib/chef/resource/sudo.rb index bd1c7de60e..99bea022ef 100644 --- a/lib/chef/resource/sudo.rb +++ b/lib/chef/resource/sudo.rb @@ -255,7 +255,7 @@ class Chef end def visudo_content(path) - if ::File.exists?(path) + if ::File.exist?(path) "cat #{new_resource.config_prefix}/sudoers | #{new_resource.visudo_binary} -cf - && #{new_resource.visudo_binary} -cf %{path}" else "cat #{new_resource.config_prefix}/sudoers %{path} | #{new_resource.visudo_binary} -cf -" |