class Chef::ChefFS::FileSystem::ChefServer::EnvironmentsDir::DefaultEnvironmentEntry
Public Class Methods
Source
# File lib/chef/chef_fs/file_system/chef_server/environments_dir.rb, line 37 def initialize(name, parent, exists = nil) super(name, parent) @exists = exists end
Calls superclass method
Public Instance Methods
Source
# File lib/chef/chef_fs/file_system/chef_server/environments_dir.rb, line 42 def delete(recurse) raise NotFoundError.new(self) unless exists? raise DefaultEnvironmentCannotBeModifiedError.new(:delete, self) end
Source
# File lib/chef/chef_fs/file_system/chef_server/environments_dir.rb, line 48 def write(file_contents) raise NotFoundError.new(self) unless exists? raise DefaultEnvironmentCannotBeModifiedError.new(:write, self) end