# File lib/librarian/puppet/source/githubtarball/repo.rb, line 42 def install_version!(version, install_path) if environment.local? && !vendored?(vendored_name, version) raise Error, "Could not find a local copy of #{source.uri} at #{version}." end vendor_cache(source.uri.to_s, version) unless vendored?(vendored_name, version) cache_version_unpacked! version if install_path.exist? && rsync? != true install_path.rmtree end unpacked_path = version_unpacked_cache_path(version).children.first cp_r(unpacked_path, install_path) end