Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Rakefile: Bad copy/paste got me tabs in the Rakefile Yakkk..

  • Loading branch information...
commit 15225f82335b4cadc270ab9f7b0f094a42d3dc3d 1 parent 1d90026
@kalbasit kalbasit authored
Showing with 13 additions and 13 deletions.
  1. +13 −13 Rakefile
View
26 Rakefile
@@ -22,19 +22,19 @@ namespace :dev do
end
end
- # Taken from RefineryCMD
- # https://github.com/resolve/refinerycms/blob/master/core/lib/tasks/refinery.rake
- desc 'Removes trailing whitespace across the entire application.'
- task :whitespace do
- require 'rbconfig'
- if RbConfig::CONFIG['host_os'] =~ /linux/
- sh %{find . -name '*.*rb' -o -name '*.*vim' -exec sed -i 's/\t/ /g' {} \\; -exec sed -i 's/ *$//g' {} \\; }
- elsif RbConfig::CONFIG['host_os'] =~ /darwin/
- sh %{find . -name '*.*rb' -o -name '*.*vim' -exec sed -i '' 's/\t/ /g' {} \\; -exec sed -i '' 's/ *$//g' {} \\; }
- else
- puts "This doesn't work on systems other than OSX or Linux. Please use a custom whitespace tool for your platform '#{RbConfig::CONFIG["host_os"]}'."
- end
- end
+ # Taken from RefineryCMD
+ # https://github.com/resolve/refinerycms/blob/master/core/lib/tasks/refinery.rake
+ desc 'Removes trailing whitespace across the entire application.'
+ task :whitespace do
+ require 'rbconfig'
+ if RbConfig::CONFIG['host_os'] =~ /linux/
+ sh %{find . -name '*.*rb' -o -name '*.*vim' -exec sed -i 's/\t/ /g' {} \\; -exec sed -i 's/ *$//g' {} \\; }
+ elsif RbConfig::CONFIG['host_os'] =~ /darwin/
+ sh %{find . -name '*.*rb' -o -name '*.*vim' -exec sed -i '' 's/\t/ /g' {} \\; -exec sed -i '' 's/ *$//g' {} \\; }
+ else
+ puts "This doesn't work on systems other than OSX or Linux. Please use a custom whitespace tool for your platform '#{RbConfig::CONFIG["host_os"]}'."
+ end
+ end
end
desc "Create necessary folders."
Please sign in to comment.
Something went wrong with that request. Please try again.