Class: Chef::ChefFS::FileSystem::ChefServer::EnvironmentsDir
- Inherits:
-
RestListDir
- Object
- BaseFSObject
- BaseFSDir
- RestListDir
- Chef::ChefFS::FileSystem::ChefServer::EnvironmentsDir
- Defined in:
- lib/chef/chef_fs/file_system/chef_server/environments_dir.rb
Defined Under Namespace
Classes: DefaultEnvironmentEntry
Instance Attribute Summary
Attributes inherited from RestListDir
Attributes inherited from BaseFSObject
Instance Method Summary collapse
Methods inherited from RestListDir
#can_have_child?, #children, #create_child, #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, #create_child, #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
#make_child_entry(name, exists = nil) ⇒ Object
28 29 30 31 32 33 34 |
# File 'lib/chef/chef_fs/file_system/chef_server/environments_dir.rb', line 28 def make_child_entry(name, exists = nil) if File.basename(name, ".*") == "_default" DefaultEnvironmentEntry.new(name, self, exists) else super end end |