Resource.unpack: install invisible files and dirs

Since patches sometimes change .gitignore and .travis.yml, it's
desirable to install them along with everything else if a resource needs
patching. Also, for resources that are git respositories, this allows
install to interact with git objects other than the commit specifically
checked out. More generally, this may help to avoid subtle issues by
preserving the fidelity of resources in cases where invisible dot files
play a functional role.

Closes #329.

Signed-off-by: ilovezfs <ilovezfs@icloud.com>
This commit is contained in:
ilovezfs 2016-06-07 10:57:25 -07:00
parent af42deca4a
commit 21ca138edf

View File

@ -98,7 +98,7 @@ class Resource
yield ResourceStageContext.new(self, staging)
elsif target
target = Pathname.new(target) unless target.is_a? Pathname
target.install Dir["*"]
target.install Pathname.pwd.children
end
end
end