summaryrefslogtreecommitdiffstats
path: root/lib/puppet/application/inspect.rb
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '2.6.x' into 2.6.nextJacob Helwig2011-02-211-57/+59
|\ | | | | | | | | | | | | | | * 2.6.x: Updated CHANGELOG for 2.6.5rc5 (#6337) Fix Ruby warning on 1.8.6 about "future compatibility" (#6353) Restore the ability to store paths in the filebucket (#6126) Puppet inspect now reports status after run completes.
| * (#6126) Puppet inspect now reports status after run completes.Daniel Pittman2011-02-181-57/+59
| | | | | | | | | | | | | | | | We now emit timing and output a status message at the end of a successful inspect run. Paired-With: Nick Lewis <nick@puppetlabs.com> Signed-Off-By: Daniel Pittman <daniel@puppetlabs.com>
* | (#6346) Move the trap calls onto Signal so they're easier to stubMatt Robinson2011-02-161-1/+1
|/ | | | | | | | | | | | | | | | | | | | Once you stub signal traps in tests, you can hit ctrl+c in the middle of a spec run and it will stop the run instead of puppet catching the SIGINT. I had trouble easily tracking down all the places to stub traps when the trap was being called as a private method on applications and daemons, but calling trap on Signal is equivalent since Kernel calls Signal.trap and Object mixes in Kernel to provide trap as a private method on all objects. A bigger solution would be to refactor everywhere we call trap into a method that's called consistently since right now we sprinkle SIGINT and SIGTERM trap handling over applications and daemons in inconsistent ways, returning different error codes and using different messages. I've captured this info in ticket #6345. Reviewed-by: Jacob Helwig <jacob@puppetlabs.com>
* (#6018) Nick F's --help text for puppet inspect.Jesse Wolfe2011-02-031-0/+53
|
* (#5882) Added error-handling for bucketing files in puppet inspectNick Lewis2011-01-131-1/+5
| | | | Paired-With: Paul Berry
* (#5882) Added error-handling to puppet inspect when auditingNick Lewis2011-01-131-12/+27
| | | | | | | | If auditing a resource fails, the report will contain failure events for every audited property of the resource. The report itself will also be marked as "failed". Paired-With: Paul Berry
* (#5171) Made "puppet inspect" upload audited files to a file bucketPaul Berry2011-01-131-0/+11
| | | | | | | | This only occurs if the new setting :archive_files is set. Another new setting, :archive_file_server, can be used to specify the server that files should be uploaded to. Paired-with: Nick Lewis <nick@puppetlabs.com>
* Prep for #5171: Added a missing require to inspect application.Paul Berry2011-01-131-0/+1
| | | | Paired-with: Nick Lewis <nick@puppetlabs.com>
* maint: Inspect reports should have audited = true on eventsMatt Robinson2011-01-061-1/+7
| | | | Paired-with: Jesse Wolfe
* Merge branch 'ticket/2.6.next/5698' into 2.6.nextJesse Wolfe2011-01-031-2/+6
|\
| * Fix #5698 puppet inspect shouldn't report of attributes of deleted filesJesse Wolfe2011-01-031-2/+6
| | | | | | | | | | | | | | | | | | If a resource is absent, then reporting that its properties are all ":absent" is not particularly correct. This patch makes the `inspect` application's reports behave more like `apply` reports, and skip properties other than :ensure for absent resources. Reviewed-By: Nick Lewis <nick@puppetlabs.com>
* | (#5715) Refactor in preparation for adding a status attribute to reports.Paul Berry2010-12-301-1/+1
| | | | | | | | | | | | | | | | | | | | Renamed Puppet::Transaction::Report#calculate_metrics to finalize_report, in preparation for adding more functionality to this method. Removed Puppet::Transaction#send_report and Puppet::Transaction#generate_report. The former was never used, and the latter was unnecessary.
* | (#5715) Added total time to inspect reports and made inspect metrics more ↵Paul Berry2010-12-301-5/+5
|/ | | | | | | consistent. Inspect reports now contain all the metrics that apply reports do, and use the same code path for creating them.
* (#5493) Add report_format, puppet_version, and configuration_version to ReportsNick Lewis2010-12-161-0/+2
| | | | | | | | | Current report formats are: 0: 0.25 reports and earlier 1: 0.26.1 - 0.26.4 reports 2: 0.26.5 and beyond Paired-With: Jesse Wolfe
* (#4943) Add puppet inspect applicationNick Lewis2010-12-021-0/+80
"puppet inspect" will load the locally stored YAML catalog and record the current state of the audited properties in the catalog. It uses settings specified in the [agent] configuration section, and will send its inspect report to the specified server. Paired-With: Jesse Wolfe