Module: Pkg::Metrics
- Defined in:
- lib/packaging/metrics.rb
Class Method Summary collapse
Class Method Details
.update_release_metrics ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/packaging/metrics.rb', line 4 def update_release_metrics metrics_repo = 'release-metrics' command = <<~CMD git clone [email protected]:puppetlabs/#{metrics_repo}.git cd #{metrics_repo} bundle exec add-release --date #{Pkg::Util::Date.today} --project #{Pkg::Config.project} --version #{Pkg::Config.ref} cd .. rm -r #{metrics_repo} CMD Pkg::Util::Execution.capture3(command, true) end |