lib/librarian/puppet/util.rb in librarian-puppet-1.0.1 vs lib/librarian/puppet/util.rb in librarian-puppet-1.0.2

- old
+ new

@@ -23,8 +23,16 @@ 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 + + # Remove user and password from a URI object + def clean_uri(uri) + new_uri = uri.clone + new_uri.user = nil + new_uri.password = nil + new_uri + end end end end