diff options
author | Jesse Wolfe <jes5199@gmail.com> | 2010-10-18 15:24:37 -0700 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2011-01-23 04:25:42 +1100 |
commit | 70630b903b747db0148cd972b64e5162b8f459cc (patch) | |
tree | 9471eab0dd4fedeca5947792010a92af1ade7837 /lib/puppet/util/rdoc/parser.rb | |
parent | 76d1c2aefb32cc3688e3f7c0a5c8bbf713a123ed (diff) | |
download | puppet-70630b903b747db0148cd972b64e5162b8f459cc.tar.gz puppet-70630b903b747db0148cd972b64e5162b8f459cc.tar.xz puppet-70630b903b747db0148cd972b64e5162b8f459cc.zip |
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.
2) 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.
Diffstat (limited to 'lib/puppet/util/rdoc/parser.rb')
0 files changed, 0 insertions, 0 deletions