diff options
author | Luke Kanies <luke@madstop.com> | 2009-07-05 23:14:40 -0700 |
---|---|---|
committer | test branch <puppet-dev@googlegroups.com> | 2010-02-17 06:50:53 -0800 |
commit | 6a450c51eedc38b73d79389c19b8d5e5964a9d71 (patch) | |
tree | 0a62569c6fce44ebccb40cbd30869d9239d41d9b | |
parent | 379ac8fe91d25f9b77a47029484d60c09b8f8073 (diff) | |
download | puppet-6a450c51eedc38b73d79389c19b8d5e5964a9d71.tar.gz puppet-6a450c51eedc38b73d79389c19b8d5e5964a9d71.tar.xz puppet-6a450c51eedc38b73d79389c19b8d5e5964a9d71.zip |
removing never-used code
Signed-off-by: Luke Kanies <luke@madstop.com>
-rw-r--r-- | lib/puppet/util/config_store.rb | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/lib/puppet/util/config_store.rb b/lib/puppet/util/config_store.rb deleted file mode 100644 index ad18259bd..000000000 --- a/lib/puppet/util/config_store.rb +++ /dev/null @@ -1,61 +0,0 @@ -module Puppet::Util - # The abstract base class for client configuration storage. - class ConfigStore - extend Puppet::Util - extend Puppet::Util::Docs - extend Puppet::Util::ClassGen - - @loader = Puppet::Util::Autoload.new(self, "puppet/config_stores") - @stores = {} - - # Add a new report type. - def self.newstore(name, options = {}, &block) - klass = genclass(name, - :block => block, - :prefix => "ConfigStore", - :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 config for a client. - def get(client) - raise Puppet::DevError, "%s has not overridden get" % self.class.name - end - - # Store the config for a client. - def store(client, config) - raise Puppet::DevError, "%s has not overridden store" % self.class.name - end - - def collect_exported(client, conditions) - raise Puppet::DevError, "%s has not overridden collect_exported" % self.class.name - end - - end -end - |