Method: Chef::ChefFS::FileSystem::ChefServer::PolicyRevisionEntry#write
- Defined in:
- lib/chef/chef_fs/file_system/chef_server/policy_revision_entry.rb
#write(file_contents) ⇒ Object
21 22 23 |
# File 'lib/chef/chef_fs/file_system/chef_server/policy_revision_entry.rb', line 21 def write(file_contents) raise OperationNotAllowedError.new(:write, self, nil, "cannot be updated: policy revisions are immutable once uploaded. If you want to change the policy, create a new revision with your changes") end |