Fix instances of deprecated class methods (#15183)

Replace ::File.exists? for ::File.exist?
This commit is contained in:
Andres Rodriguez 2023-07-17 11:32:46 -04:00 committed by GitHub
parent cb19d4e88a
commit 1d558c35d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 48 additions and 43 deletions

View file

@ -63,7 +63,7 @@ class LogStash::PluginManager::Generate < LogStash::PluginManager::Command
target_entry = File.join(target, entry)
if File.directory?(source_entry)
FileUtils.mkdir(target_entry) unless File.exists?(target_entry)
FileUtils.mkdir(target_entry) unless File.exist?(target_entry)
transform_r(source_entry, target_entry)
else
# copy the new file, in case of being an .erb file should render first