Method: Puppet::Transaction::Report#exit_status
- Defined in:
- lib/vendor/puppet/transaction/report.rb
#exit_status ⇒ Object
Based on the contents of this report’s metrics, compute a single number that represents the report. The resulting number is a bitmask where individual bits represent the presence of different metrics.
136 137 138 139 140 141 |
# File 'lib/vendor/puppet/transaction/report.rb', line 136 def exit_status status = 0 status |= 2 if @metrics["changes"]["total"] > 0 status |= 4 if @metrics["resources"]["failed"] > 0 status end |