summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2009-03-15 17:52:35 -0500
committerJames Turnbull <james@lovedthanlost.net>2009-03-20 18:27:08 +1100
commit3e954997f7688f0193010de776879d23545a8ca5 (patch)
treeeb3783cd859ce3d5d7f650187264d11bdf11125f /lib/puppet
parent97975e14acfc8c62488a2e6495ca00d426bc9290 (diff)
downloadpuppet-3e954997f7688f0193010de776879d23545a8ca5.tar.gz
puppet-3e954997f7688f0193010de776879d23545a8ca5.tar.xz
puppet-3e954997f7688f0193010de776879d23545a8ca5.zip
Removing an unused source file
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/util/fact_store.rb59
1 files changed, 0 insertions, 59 deletions
diff --git a/lib/puppet/util/fact_store.rb b/lib/puppet/util/fact_store.rb
deleted file mode 100644
index a93aa4265..000000000
--- a/lib/puppet/util/fact_store.rb
+++ /dev/null
@@ -1,59 +0,0 @@
-# Created on 2007-05-02
-# Copyright Luke Kanies
-
-module Puppet::Util
- # The abstract base class for client fact storage.
- class FactStore
- extend Puppet::Util
- extend Puppet::Util::Docs
- extend Puppet::Util::ClassGen
-
- @loader = Puppet::Util::Autoload.new(self, "puppet/fact_stores")
- @stores = {}
-
- # Add a new report type.
- def self.newstore(name, options = {}, &block)
- klass = genclass(name,
- :block => block,
- :prefix => "FactStore",
- :hash => @stores,
- :attributes => options
- )
- end
-
- # Remove a store; really only used for testing.
- def self.rmstore(name)
- rmclass(name, :hash => @stores)
- end
-
- # Load a store.
- def self.store(name)
- name = symbolize(name)
- unless @stores.include? name
- if @loader.load(name)
- unless @stores.include? name
- Puppet.warning(
- "Loaded report file for %s but report was not defined" %
- name
- )
- return nil
- end
- else
- return nil
- end
- end
- @stores[name]
- end
-
- # Retrieve the facts for a node.
- def get(node)
- raise Puppet::DevError, "%s has not overridden get" % self.class.name
- end
-
- # Set the facts for a node.
- def set(node, facts)
- raise Puppet::DevError, "%s has not overridden set" % self.class.name
- end
- end
-end
-