class Chef::ChefFS::FileSystem::ChefServer::EnvironmentsDir::DefaultEnvironmentEntry

Public Class Methods

new(name, parent, exists = nil) click to toggle source
Calls superclass method
# 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

Public Instance Methods

delete(recurse) click to toggle 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
write(file_contents) click to toggle 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