blob: 9d3b49c61569a1383eb77ac9cfe06048df04cb22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
#!/usr/bin/env ruby
#
# = Synopsis
#
# Collect and display facts about the system.
#
# = Usage
#
# facter [-d|--debug] [-h|--help] [-p|--puppet] [-v|--version] [-y|--yaml] [fact] [fact] [...]
#
# = Description
#
# Collect and display facts about the current system. The library behind
# Facter is easy to expand, making Facter an easy way to collect information
# about a system from within the shell or within Ruby.
#
# If no facts are specifically asked for, then all facts will be returned.
#
# = Options
#
# yaml::
# Emit facts in YAML format.
#
# puppet::
# Load the Puppet libraries, thus allowing Facter to load Puppet-specific facts.
#
# version::
# Print the version and exit.
#
# help::
# Print this help message.
#
# debug::
# Enable debugging.
#
# trace::
# Enable backtraces.
#
# timing::
# Enable timing.
#
# = Example
#
# facter kernel
#
# = Author
#
# Luke Kanies
#
# = Copyright
#
# Copyright (c) 2006 Reductive Labs, LLC
# Licensed under the GNU Public License
require 'facter/application'
Facter::Application.run(ARGV)
|