Created
March 31, 2015 23:45
-
-
Save joshuapaling/d6816c2daf77acc45075 to your computer and use it in GitHub Desktop.
Rake task to rename .css.scss files to just .scss (the long extension is deprecated)
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
task :rename_css_scss do | |
files = Rake::FileList["app/assets/stylesheets/**/*.css.scss"] | |
files.each do |f| | |
new_name = f.gsub(/\.css\.scss/, '.scss') | |
sh "mv #{f} #{new_name}" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment