diff options
| author | Markus Roberts <Markus@reality.com> | 2010-08-14 17:31:22 -0700 |
|---|---|---|
| committer | Markus Roberts <Markus@reality.com> | 2010-08-21 13:07:20 -0700 |
| commit | 0c3075443c80227c1e35cfb4952d3971c1c0adeb (patch) | |
| tree | 187282cbc22e1d4f5f91a64731e87d7c271d0e7a /lib | |
| parent | 3df0490c9dbc59e27869e09864177536400a5ae3 (diff) | |
Maint. Removing code at the request of the original author
A contributor has requested that his changes be removed from puppet.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/indirector/yaml.rb | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/puppet/indirector/yaml.rb b/lib/puppet/indirector/yaml.rb index c7c053f4b..13f3c1e79 100644 --- a/lib/puppet/indirector/yaml.rb +++ b/lib/puppet/indirector/yaml.rb @@ -41,21 +41,12 @@ class Puppet::Indirector::Yaml < Puppet::Indirector::Terminus end end - # Get the yaml directory - def base - Puppet.run_mode.master? ? Puppet[:yamldir] : Puppet[:clientyamldir] - end - # Return the path to a given node's file. def path(name) + base = Puppet.run_mode.master? ? Puppet[:yamldir] : Puppet[:clientyamldir] File.join(base, self.class.indirection_name.to_s, name.to_s + ".yaml") end - # Do a glob on the yaml directory, loading each file found - def search(request) - Dir.glob(File.join(base, self.class.indirection_name.to_s, request.key)).collect { |f| YAML.load_file(f) } - end - private def from_yaml(text) |
