mirror of
https://github.com/inspec/inspec
synced 2024-11-15 01:17:08 +00:00
Remove file.exists? deprecation in favor of file.exist?
Signed-off-by: Sonu Saha <sonu.saha@progress.com>
This commit is contained in:
parent
dc99737283
commit
dc46fe9a73
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ module InspecPlugins
|
|||
if File.file?(source_file)
|
||||
# Be git-like and only create directories if they contain a file
|
||||
containing_directory = full_destination_item_path.dirname
|
||||
unless File.exists?(containing_directory)
|
||||
unless File.exist?(containing_directory)
|
||||
ui.list_item "Creating directory #{ui.emphasis(containing_directory)}"
|
||||
FileUtils.mkdir_p(containing_directory)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue