~ubuntu-branches/ubuntu/trusty/puppet/trusty

« back to all changes in this revision

Viewing changes to lib/puppet/application/inspect.rb

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2011-10-22 14:08:22 UTC
  • mfrom: (1.1.25) (3.1.32 sid)
  • Revision ID: package-import@ubuntu.com-20111022140822-odxde5lohc45yhuz
Tags: 2.7.6-1
* New upstream release (CVE-2011-3872)
* Remove cherry-picked "groupadd_aix_warning" patch
* Install all new manpages

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
require 'puppet'
2
1
require 'puppet/application'
3
 
require 'puppet/file_bucket/dipper'
4
2
 
5
3
class Puppet::Application::Inspect < Puppet::Application
6
4
 
33
31
 
34
32
USAGE
35
33
-----
36
 
puppet inspect
 
34
puppet inspect [--archive_files] [--archive_file_server]
37
35
 
38
36
 
39
37
DESCRIPTION
59
57
http://docs.puppetlabs.com/references/latest/configuration.html for
60
58
the full list of acceptable settings.
61
59
 
 
60
* --archive_files:
 
61
  During an inspect run, whether to archive files whose contents are audited to
 
62
  a file bucket.
 
63
 
 
64
* --archive_file_server:
 
65
  During an inspect run, the file bucket server to archive files to if
 
66
  archive_files is set.  The default value is '$server'.
 
67
 
62
68
 
63
69
AUTHOR
64
70
------
98
104
    Puppet::Resource::Catalog.indirection.terminus_class = :yaml
99
105
  end
100
106
 
 
107
  def preinit
 
108
    require 'puppet'
 
109
    require 'puppet/file_bucket/dipper'
 
110
  end
 
111
 
101
112
  def run_command
102
113
    benchmark(:notice, "Finished inspection") do
103
114
      retrieval_starttime = Time.now