summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-12 10:08:17 -0600
committerLuke Kanies <luke@madstop.com>2007-11-12 10:08:17 -0600
commita4e8f1ca2cc6c1257e4dae0f32e24ff71aa94eea (patch)
tree4729450751d920bef65a5806aa5d9b1d3087baf1 /lib/puppet
parent59cc25d798f20bc01943ca341c04716cb037064a (diff)
downloadpuppet-a4e8f1ca2cc6c1257e4dae0f32e24ff71aa94eea.tar.gz
puppet-a4e8f1ca2cc6c1257e4dae0f32e24ff71aa94eea.tar.xz
puppet-a4e8f1ca2cc6c1257e4dae0f32e24ff71aa94eea.zip
Adding a memory terminus for facts, which is really only used for testing
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/indirector/facts/memory.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/puppet/indirector/facts/memory.rb b/lib/puppet/indirector/facts/memory.rb
new file mode 100644
index 000000000..3c10d5964
--- /dev/null
+++ b/lib/puppet/indirector/facts/memory.rb
@@ -0,0 +1,9 @@
+require 'puppet/node/facts'
+require 'puppet/indirector/memory'
+
+class Puppet::Node::Facts::Memory < Puppet::Indirector::Memory
+ desc "Keep track of facts in memory but nowhere else. This is used for
+ one-time compiles, such as what the stand-alone ``puppet`` does.
+ To use this terminus, you must load it with the data you want it
+ to contain."
+end