Is there a way to use Linux locate in Chef/ruby to find required files?
Preferred is elegant way.
I have shell_out example in my head. I know that I can do it with Ohai. Better suggestions? It's important to write each line to array as well. Any help on this?
locate = shell_out('locate -e gcc')
if locate.exitstatus == 0 && locate
Chef::Log.info("Locate results: #{locate.stdout}")
end