Class: Chef::ChefFS::FileSystem::Repository::DataBag

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

Overview

Represents REPO_ROOT/data_bags/data_bag Children of this are data bag items.

Instance Attribute Summary

Attributes inherited from Directory

#file_path, #name, #parent, #path

Instance Method Summary collapse

Methods inherited from Directory

#can_have_child?, #child, #children, #create, #create_child, #delete, #dir?, #dir_ls, #empty?, #exists?, #fs_entry_valid?, #initialize, #name_valid?, #path_for_printing, #root

Constructor Details

This class inherits a constructor from Chef::ChefFS::FileSystem::Repository::Directory

Instance Method Details

#make_child_entry(child_name) ⇒ Object



31
32
33
# File 'lib/chef/chef_fs/file_system/repository/data_bag.rb', line 31

def make_child_entry(child_name)
  DataBagItem.new(child_name, self)
end