Class: Chef::ChefFS::FileSystem::Repository::Acl
- 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
- #bare_name ⇒ Object
-
#initialize(name, parent) ⇒ Acl
constructor
A new instance of Acl.
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_name ⇒ Object
34 35 36 37 38 39 40 |
# File 'lib/chef/chef_fs/file_system/repository/acl.rb', line 34 def if name == "organization" && parent.is_a?(AclDir) "organization.json" else name end end |