Permalink
Browse files

Update install.rb to mkdir -p vendor/sprockets app/javascripts and to…

…uch app/javascripts/application.js
  • Loading branch information...
1 parent 2d71eea commit e3603df6061b410bae55e964384f11d90a4b9dd3 @sstephenson committed Feb 8, 2009
Showing with 8 additions and 2 deletions.
  1. +8 −2 install.rb
View
@@ -1,4 +1,10 @@
require "fileutils"
+include FileUtils::Verbose
-FileUtils.cp File.join(File.dirname(__FILE__), "config", "sprockets.yml"),
- File.join(File.dirname(__FILE__), "..", "..", "..", "config")
+RAILS_ROOT = File.join(File.dirname(__FILE__), "..", "..", "..") unless defined?(RAILS_ROOT)
+
+mkdir_p File.join(RAILS_ROOT, "vendor", "sprockets")
+mkdir_p File.join(RAILS_ROOT, "app", "javascripts")
+touch File.join(RAILS_ROOT, "app", "javascripts", "application.js")
+cp File.join(File.dirname(__FILE__), "config", "sprockets.yml"),
+ File.join(RAILS_ROOT, "config")

0 comments on commit e3603df

Please sign in to comment.