Created
February 9, 2013 04:11
-
-
Save jontonsoup/4743796 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc "Renames all .html.erb files to .html.haml" | |
task :haml do | |
print "looking for erb views..\n" | |
files = `find ./app/views -name *.html.erb` | |
files.each_line do |file| | |
file.strip! | |
print "parsing file: #{file}\n" | |
`mv #{file} #{file.gsub(/\.erb$/, ".haml")}` | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment