A contributor has requested that his changes be removed from puppet.

Signed-off-by: Markus Roberts <[email protected]>
---
 ext/puppetlast                |   16 ----------------
 lib/puppet/indirector/yaml.rb |   11 +----------
 2 files changed, 1 insertions(+), 26 deletions(-)
 delete mode 100755 ext/puppetlast

diff --git a/ext/puppetlast b/ext/puppetlast
deleted file mode 100755
index 7434368..0000000
--- a/ext/puppetlast
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/env ruby
-# Puppetlast, a script to output the last check-in time of nodes. Also outputs 
the cached configuration state, if expired or not.
-#
-# AJ "Fujin" Christensen <[email protected]>
-#
-require 'puppet'
-require 'time'
-
-Puppet[:config] = "/etc/puppet/puppet.conf"
-Puppet.parse_config
-Puppet[:name] = "puppetmasterd"
-Puppet::Node::Facts.terminus_class = :yaml
-
-Puppet::Node::Facts.search("*").sort { |a,b| a.name <=> b.name }.each do |node|
-  puts "#{node.name} checked in #{((Time.now - 
Time.parse(node.values[:_timestamp].to_s)) / 60).floor} minutes ago.  Version 
#{node.values['puppetversion']}#{node.expired? ? '  Cache expired.' : ''}"
-end
diff --git a/lib/puppet/indirector/yaml.rb b/lib/puppet/indirector/yaml.rb
index c7c053f..13f3c1e 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)
-- 
1.6.4

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to