Class: Chef::ChefFS::FileSystem::ChefServer::DataBagEntry
- Inherits:
-
RestListEntry
- Object
- BaseFSObject
- RestListEntry
- Chef::ChefFS::FileSystem::ChefServer::DataBagEntry
- Defined in:
- lib/chef/chef_fs/file_system/chef_server/data_bag_entry.rb
Overview
/policies/NAME-REVISION.json Represents the actual data at /organizations/ORG/policies/NAME/revisions/REVISION
Instance Attribute Summary
Attributes inherited from BaseFSObject
Instance Method Summary collapse
Methods inherited from RestListEntry
#_read_json, #api_child_name, #api_error_text, #api_path, #chef_object, #compare_to, #data_handler, #delete, #display_name, #environment, #exists?, #initialize, #minimize_value, #org, #read, #rest, #write
Methods inherited from BaseFSObject
#can_have_child?, #chef_object, #child, #children, #compare_to, #create_child, #delete, #dir?, #exists?, #initialize, #path_for_printing, #read, #root, #write
Constructor Details
This class inherits a constructor from Chef::ChefFS::FileSystem::ChefServer::RestListEntry
Instance Method Details
#display_path ⇒ Object
11 12 13 14 |
# File 'lib/chef/chef_fs/file_system/chef_server/data_bag_entry.rb', line 11 def display_path pth = "/data_bags/#{parent.name}/#{name}" File.extname(pth).empty? ? pth + ".json" : pth end |