Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…uch app/javascripts/application.js
  • Loading branch information...
commit e3603df6061b410bae55e964384f11d90a4b9dd3 1 parent 2d71eea
@sstephenson authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 install.rb
View
10 install.rb
@@ -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")
Please sign in to comment.
Something went wrong with that request. Please try again.