Class: Librarian::Puppet::Source::Git
- Inherits:
-
Source::Git
- Object
- Source::Git
- Librarian::Puppet::Source::Git
- Defined in:
- lib/librarian/puppet/source/git.rb
Instance Method Summary collapse
Methods included from Util
#clean_uri, #cp_r, #debug, #info, #module_name, #normalize_name, #rsync?, #warn
Methods included from Local
#fetch_dependencies, #fetch_version, #forge_source, #install!
Instance Method Details
#cache! ⇒ Object
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
# File 'lib/librarian/puppet/source/git.rb', line 79 def cache! return vendor_checkout! if vendor_cached? if environment.local? raise Error, "Could not find a local copy of #{uri}#{" at #{sha}" unless sha.nil?}." end begin super rescue Librarian::Posix::CommandFailure => e raise Error, "Could not checkout #{uri}#{" at #{sha}" unless sha.nil?}: #{e}" end cache_in_vendor(repository.path) if environment.vendor? end |