HomePhorge

Fix #3165 Ralsh (bin/puppet resource) can't manage files
70630b903b74Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Fix #3165 Ralsh (bin/puppet resource) can't manage files

This is based on the patch submitted by Owen Smith.
File management was being blocked by two problems: an obsolete, broken
instances method for the file type,
and a bug in the way resource/ral handled slashes in resource names.

This patch makes two changes to Owen's version:

  1. our unit tests caught an

unexpected ruby quirk:
"text/".split("/")
and
"text/".split("/", 2)
do not return the same values.

  1. File.instances now reproduces the old behavior of listing files in

the root directory. This is now implemented in terms of the existing
file recursion feature.

Details

Provenance
Jesse Wolfe <jes5199@gmail.com>Authored on
James Turnbull <james@lovedthanlost.net>Committed on Jan 22 2011, 6:25 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU76d1c2aefb32: Merge branch 'ticket/2.6.next/5799' into 2.6.x
Branches
Unknown
Tags
Unknown

Event Timeline

James Turnbull <james@lovedthanlost.net> committed rPU70630b903b74: Fix #3165 Ralsh (bin/puppet resource) can't manage files (authored by Jesse Wolfe <jes5199@gmail.com>).Jan 22 2011, 6:25 PM