Unnamed
public text v1 · immutableclass Adaptor
def initialize(clientbucket = '/var/lib/puppet/clientbucket')
@clientbucket = clientbucket
end
def get_newest_contents_file(filename)
Dir["#@clientbucket/**/paths"].each do |path|
file = File.read(path).chomp
if file == filename
puts "Path is #{path}"
return path.gsub(/paths/, 'contents')
end
end
end
end