Class: Puppet::FileSystem::File18

Inherits:
File show all
Defined in:
lib/puppet/file_system/file18.rb

Constant Summary

Constants inherited from File

Puppet::FileSystem::File::IMPL

Instance Attribute Summary

Attributes inherited from File

#path

Instance Method Summary collapse

Methods inherited from File

#basename, #compare_stream, #dir, #each_line, #exclusive_open, #executable?, #exist?, exist?, forget, #initialize, #lstat, #mkpath, new, #open, overlay, #read, #readlink, remember, #size, #stat, #symlink, #symlink?, #to_s, #touch, unlink, #unlink, #writable?

Constructor Details

This class inherits a constructor from Puppet::FileSystem::File

Instance Method Details

#binreadObject



2
3
4
# File 'lib/puppet/file_system/file18.rb', line 2

def binread
  ::File.open(@path, 'rb') { |f| f.read }
end