mirror of
https://github.com/elastic/logstash.git
synced 2025-06-28 17:53:28 -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
|
@ -45,7 +45,7 @@ class LogStash::PluginManager::PrepareOfflinePack < LogStash::PluginManager::Com
|
|||
signal_error("Package creation cancelled: You must specify the zip extension for the provided filename: #{output}.")
|
||||
end
|
||||
|
||||
if ::File.exists?(output)
|
||||
if ::File.exist?(output)
|
||||
if overwrite?
|
||||
File.delete(output)
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue