workaround Issue #173 FileUtils.cp_r will fail if there is a symlink that points to a missing file or when the symlink is copied before the target file when preserve is true see also tickets.opscode.com/browse/CHEF-833
# File lib/librarian/puppet/util.rb, line 19 def cp_r(src, dest) begin FileUtils.cp_r(src, dest, :preserve => true) rescue Errno::ENOENT debug { "Failed to copy from #{src} to #{dest} preserving file types, trying again without preserving them" } FileUtils.rm_rf(dest) FileUtils.cp_r(src, dest) end end
# File lib/librarian/puppet/util.rb, line 6 def debug(*args, &block) environment.logger.debug(*args, &block) end
Generated with the Darkfish Rdoc Generator 2.