class Puppet::FileSystem::JRuby

Public Instance Methods

replace_file(path, mode = nil, &block) click to toggle source
   # File lib/puppet/file_system/jruby.rb
15 def replace_file(path, mode = nil, &block)
16   # MRI Ruby rename checks if destination is a directory and raises, while
17   # JRuby removes the directory and replaces the file.
18   if directory?(path)
19     raise Errno::EISDIR, _("Is a directory: %{directory}") % { directory: path }
20   end
21 
22   super
23 end