From ca2da36988c4d9fb2afbfc3f15c295df9b8cd05f Mon Sep 17 00:00:00 2001 From: James Turnbull Date: Sat, 28 Aug 2010 09:55:52 +1000 Subject: Updated install.rb and created man page --- install.rb | 6 ------ man/man8/facter.8 | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 6 deletions(-) create mode 100644 man/man8/facter.8 diff --git a/install.rb b/install.rb index a40e292..bbf4007 100755 --- a/install.rb +++ b/install.rb @@ -316,12 +316,6 @@ def build_man(bins) # Locate rst2man rst2man = %x{which rst2man.py} rst2man.chomp! - # Create puppet.conf.8 man page - %x{bin/puppetdoc --reference configuration > ./puppet.conf.rst} - %x{#{rst2man} ./puppet.conf.rst ./man/man8/puppet.conf.8} - File.unlink("./puppet.conf.rst") - - # Create binary man pages bins.each do |bin| b = bin.gsub( "bin/", "") %x{#{bin} --help > ./#{b}.rst} diff --git a/man/man8/facter.8 b/man/man8/facter.8 new file mode 100644 index 0000000..ff24b89 --- /dev/null +++ b/man/man8/facter.8 @@ -0,0 +1,54 @@ +.TH "" "" "" +.SH NAME + \- +.\" Man page generated from reStructeredText. +. +.SH SYNOPSIS +.sp +Collect and display facts about the system. +.SH USAGE +.INDENT 0.0 +.INDENT 3.5 +.sp +facter [\-d|\-\-debug] [\-h|\-\-help] [\-p|\-\-puppet] [\-v|\-\-version] [\-y|\-\-yaml] [fact] [fact] [...] +.UNINDENT +.UNINDENT +.SH DESCRIPTION +.sp +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. +.sp +If no facts are specifically asked for, then all facts will be returned. +.SH OPTIONS +.sp +debug: Enable debugging. +.sp +help: Print this help message +.INDENT 0.0 +.TP +.B puppet: Load the Puppet libraries, thus allowing Facter to load +. +Puppet\-specific facts. +.UNINDENT +.sp +version: Print the version and exit. +.sp +yaml: Emit facts in YAML format. +.SH EXAMPLE +.INDENT 0.0 +.INDENT 3.5 +.sp +facter kernel +.UNINDENT +.UNINDENT +.SH AUTHOR +.sp +Luke Kanies +.SH COPYRIGHT +.sp +Copyright (c) 2006 Reductive Labs, LLC Licensed under the GNU Public +License +.\" Generated by docutils manpage writer. +.\" +. -- cgit