Guest User

Untitled

a guest
Feb 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #!/usr/bin/ruby
  2. require 'find'
  3. require 'fileutils'
  4.  
  5. if ARGV.empty?
  6. puts "passe o caminho para o projeto, sua mula!"
  7. exit(1)
  8. end
  9.  
  10. Find.find(ARGV[0]) do |f|
  11. if f =~ /\.svn/
  12. puts "Removendo #{f}..."
  13. FileUtils.rm_r f
  14. end
  15. end
Add Comment
Please, Sign In to add comment