Sha256: bb7eb4389666855d964ff2f4ffbe5b92aac4b8fc034d921d51566a9cdf51beee
Contents?: true
Size: 944 Bytes
Versions: 2
Compression:
Stored size: 944 Bytes
Contents
@metrics = [] def add_shipped_metrics args @metrics << { :type => 'shipped', :package => ( args[:package] || @build.project ), :version => ( args[:version] || @build.version ), :pe_version => ( args[:pe_version] || @build.pe_version ), :is_rc => ( args[:is_rc] || false ), } end def post_shipped_metrics require 'net/http' @metrics.each do |metric| type = metric[:type] package = metric[:package] version = metric[:version] pe_version = metric[:pe_version] is_rc = metric[:is_rc] uri = URI(@build.metrics_url) res = Net::HTTP.post_form( uri, { 'type' => type, 'package' => package, 'version' => version, 'pe_version' => pe_version, 'is_rc' => is_rc, } ) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-2.7.25 | ext/packaging/tasks/30_metrics.rake |
puppet-2.7.24 | ext/packaging/tasks/30_metrics.rake |