Method: Chef::ChefFS::FileSystem::BaseFSObject#read
- Defined in:
- lib/chef/chef_fs/file_system/base_fs_object.rb
#read ⇒ Object
Read the contents of this file entry.
173 174 175 176 177 |
# File 'lib/chef/chef_fs/file_system/base_fs_object.rb', line 173 def read raise NotFoundError.new(self) unless exists? raise OperationNotAllowedError.new(:read, self) end |