summaryrefslogtreecommitdiffstats
path: root/lib/facter/uptime.rb
diff options
context:
space:
mode:
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