Class: Puppet::FileSystem::File18
- Defined in:
- lib/puppet/file_system/file18.rb
Instance Method Summary collapse
Methods inherited from FileImpl
#assert_path, #basename, #children, #chmod, #compare_stream, #dir, #directory?, #each_line, #exclusive_create, #exclusive_open, #executable?, #exist?, #file?, #lstat, #mkpath, #open, #path_string, #pathname, #read, #readlink, #size, #stat, #symlink, #symlink?, #touch, #unlink, #writable?
Instance Method Details
#binread(path) ⇒ Object
2 3 4 |
# File 'lib/puppet/file_system/file18.rb', line 2 def binread(path) ::File.open(path, 'rb') { |f| f.read } end |