Class: Chef::ChefFS::FileSystem::Repository::Acl

Inherits:
BaseFile
  • Object
show all
Defined in:
lib/chef/chef_fs/file_system/repository/acl.rb

Instance Attribute Summary

Attributes inherited from BaseFile

#data_handler, #file_path, #name, #parent, #path, #write_pretty_json

Instance Method Summary collapse

Methods inherited from BaseFile

#can_have_child?, #compare_to, #create, #delete, #dir?, #exists?, #fs_entry_valid?, #is_json_file?, #is_ruby_file?, #minimize, #name_valid?, #path_for_printing, #read, #root, #write

Constructor Details

#initialize(name, parent) ⇒ Acl

Returns a new instance of Acl.



29
30
31
32
# File 'lib/chef/chef_fs/file_system/repository/acl.rb', line 29

def initialize(name, parent)
  @data_handler = Chef::ChefFS::DataHandler::AclDataHandler.new
  super
end

Instance Method Details

#bare_nameObject



34
35
36
37
38
39
40
# File 'lib/chef/chef_fs/file_system/repository/acl.rb', line 34

def bare_name
  if name == "organization" && parent.is_a?(AclDir)
    "organization.json"
  else
    name
  end
end