class ChefCLI::Policyfile::LocalLockFetcher
def transform_path(path_to_transform)
-
(Pathname)
- Path to dependent cookbook relative to the current cookbook/Policyfile.
Parameters:
-
path_to_transform
(String
) -- Path to dependent cookbook.
def transform_path(path_to_transform) cur_path = Pathname.new(storage_config.relative_paths_root) include_path = Pathname.new(path).dirname include_path.relative_path_from(cur_path).join(path_to_transform).to_s end