summaryrefslogtreecommitdiffstats
path: root/lib/facter/uptime.rb
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2011-04-01 17:19:45 +1100
committerJames Turnbull <james@lovedthanlost.net>2011-04-01 17:19:45 +1100
commitb69b2df6f09a7a165c005b3270ee21d1db57eee4 (patch)
treeb1d79db76c2b532bd0d52f2af8a7372106961384 /lib/facter/uptime.rb
parentd50db0cd74c8a198567db29ade75287f755a9bee (diff)
parent7c082702c72c168f3e739b9bc1c7562b0aa15ddd (diff)
downloadfacter-b69b2df6f09a7a165c005b3270ee21d1db57eee4.tar.gz
facter-b69b2df6f09a7a165c005b3270ee21d1db57eee4.tar.xz
facter-b69b2df6f09a7a165c005b3270ee21d1db57eee4.zip
Merge remote branch 'barn/tickets/next/5394-Improve_Facter_fact_value_documentation' into next
* barn/tickets/next/5394-Improve_Facter_fact_value_documentation: (#5394) Document each Facter fact.
Diffstat (limited to 'lib/facter/uptime.rb')
-rw-r--r--lib/facter/uptime.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/facter/uptime.rb b/lib/facter/uptime.rb
index 56a959b..7aeeb39 100644
--- a/lib/facter/uptime.rb
+++ b/lib/facter/uptime.rb
@@ -1,3 +1,14 @@
+# Fact: uptime
+#
+# Purpose: return the system uptime in a human readable format.
+#
+# Resolution:
+# Does basic maths on the "uptime_seconds" fact to return a count of
+# days, hours and minutes of uptime
+#
+# Caveats:
+#
+
require 'facter/util/uptime'
Facter.add(:uptime) do