Method: Chef::ChefFS::FileSystem::BaseFSObject#path_for_printing
- Defined in:
- lib/chef/chef_fs/file_system/base_fs_object.rb
#path_for_printing ⇒ Object
Printable path, generally used to distinguish paths in one root from paths in another.
155 156 157 158 159 160 161 162 163 164 165 166 |
# File 'lib/chef/chef_fs/file_system/base_fs_object.rb', line 155 def path_for_printing if parent parent_path = parent.path_for_printing if parent_path == "." name else Chef::ChefFS::PathUtils.join(parent.path_for_printing, name) end else name end end |