Miscellany
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|
line = File.read(path).strip
if line == filename
content = File.read(line)
p line => content
end
end
end
end