I have a Ruby script that I’m running in PowerShell (via Rake) which contains a number of operations from FileUtils. (Things like cp, cp_r, etc.) It seems that anything within FileUtils has its command echoed to the screen when it’s executed. I’ve looked around but haven’t found a way to turn this off. Is there a way to not echo anything to the screen?
I have a Ruby script that I’m running in PowerShell (via Rake) which contains
Share
You should be able to set this in the options hash in FileUtils by specifying :verbose => false
Edit: If you’re running rake it has its own FileUtils extension you should be able to do this directly, try adding this to RakeFile..