Method: Chef::ChefFS::FileSystem::BaseFSObject#write
- Defined in:
- lib/chef/chef_fs/file_system/base_fs_object.rb
#write(file_contents) ⇒ Object
Write the contents of this file entry.
180 181 182 183 184 |
# File 'lib/chef/chef_fs/file_system/base_fs_object.rb', line 180 def write(file_contents) raise NotFoundError.new(self) unless exists? raise OperationNotAllowedError.new(:write, self) end |