Navigation Menu

Skip to content

Commit

Permalink
Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Mar 16, 2012
1 parent 56d3e4c commit 7ec8959
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/tasks/install.rake
Expand Up @@ -6,14 +6,14 @@ require "find"
namespace :bourbon do
desc "Move files to the Rails assets directory."
task :install, [:sass_path] do |t, args|
args.with_defaults :sass_path => 'public/stylesheets/sass'
args.with_defaults(:sass_path => 'public/stylesheets/sass')
source_root = File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
FileUtils.mkdir_p "#{Rails.root}/#{args.sass_path}/bourbon"
FileUtils.cp_r "#{source_root}/app/assets/stylesheets/.", "#{Rails.root}/#{args.sass_path}/bourbon", {:preserve => true}
FileUtils.mkdir_p("#{Rails.root}/#{args.sass_path}/bourbon")
FileUtils.cp_r("#{source_root}/app/assets/stylesheets/.", "#{Rails.root}/#{args.sass_path}/bourbon", { :preserve => true })
Find.find("#{Rails.root}/#{args.sass_path}/bourbon") do |path|
if path.end_with?(".css.scss")
path_without_css_extention = path.gsub(".css.scss", "")<<".scss"
FileUtils.mv(path, path_without_css_extention)
path_without_css_extension = path.gsub(/\.css\.scss$/, ".scss")
FileUtils.mv(path, path_without_css_extension)
end
end
end
Expand Down

1 comment on commit 7ec8959

@sikachu
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.