mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 22:57:16 -04:00
Fix instances of deprecated class methods (#15183)
Replace ::File.exists? for ::File.exist?
This commit is contained in:
parent
cb19d4e88a
commit
1d558c35d0
23 changed files with 48 additions and 43 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue