Class: Chef::ChefFS::FileSystem::ChefServer::PolicyGroupsDir
- Inherits:
-
RestListDir
- Object
- BaseFSObject
- BaseFSDir
- RestListDir
- Chef::ChefFS::FileSystem::ChefServer::PolicyGroupsDir
- Defined in:
- lib/chef/chef_fs/file_system/chef_server/policy_groups_dir.rb
Instance Attribute Summary
Attributes inherited from RestListDir
Attributes inherited from BaseFSObject
Instance Method Summary collapse
Methods inherited from RestListDir
#can_have_child?, #children, #environment, #initialize, #org, #rest
Methods inherited from BaseFSDir
#can_have_child?, #dir?, #empty?, #initialize
Methods inherited from BaseFSObject
#can_have_child?, #chef_object, #child, #children, #compare_to, #delete, #dir?, #exists?, #initialize, #path_for_printing, #read, #root, #write
Constructor Details
This class inherits a constructor from Chef::ChefFS::FileSystem::ChefServer::RestListDir
Instance Method Details
#create_child(name, file_contents) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/chef/chef_fs/file_system/chef_server/policy_groups_dir.rb', line 33 def create_child(name, file_contents) entry = make_child_entry(name, true) entry.write(file_contents) @children = nil entry end |
#make_child_entry(name, exists = nil) ⇒ Object
29 30 31 |
# File 'lib/chef/chef_fs/file_system/chef_server/policy_groups_dir.rb', line 29 def make_child_entry(name, exists = nil) PolicyGroupEntry.new(name, self, exists) end |