Method: Beaker::DSL::InstallUtils#find_git_repo_versions
- Defined in:
- lib/beaker/dsl/install_utils.rb
#find_git_repo_versions(host, path, repository) ⇒ Hash
Note:
This requires the helper methods:
Returns Executes git describe on [host] and returns a Hash with the key of [repository] and value of the output from git describe.
93 94 95 96 97 98 99 100 101 102 |
# File 'lib/beaker/dsl/install_utils.rb', line 93 def find_git_repo_versions host, path, repository version = {} step "Grab version for #{repository[:name]}" do on host, "cd #{path}/#{repository[:name]} && " + "git describe || true" do version[repository[:name]] = stdout.chomp end end version end |