lib/pdk/validate/puppet/puppet_epp.rb in pdk-1.14.1 vs lib/pdk/validate/puppet/puppet_epp.rb in pdk-1.15.0

- old
+ new

@@ -64,14 +64,12 @@ @validate_tmpdir ||= Dir.mktmpdir('puppet-epp-validate') end def self.remove_validate_tmpdir return unless @validate_tmpdir - return unless File.directory?(@validate_tmpdir) + return unless PDK::Util::Filesystem.directory?(@validate_tmpdir) - require 'fileutils' - - FileUtils.remove_entry_secure(@validate_tmpdir) + PDK::Util::Filesystem.remove_entry_secure(@validate_tmpdir) @validate_tmpdir = nil end def self.null_file Gem.win_platform? ? 'NUL' : '/dev/null'