Permalink
Browse files

run commands with bash, override generator

  • Loading branch information...
1 parent 95d030b commit ab02a31f5d2ec7fe93b51335c8f748678e34b180 @jmondo jmondo committed Feb 26, 2012
Showing with 13 additions and 1 deletion.
  1. +13 −1 template.rb
View
@@ -43,6 +43,11 @@ def bash_run(cmd)
run "bash -l -c \"#{cmd}\""
end
+def generate(*args)
+ string = args.join(' ')
+ bash_run "rails generate #{string}"
+end
+
#====================
# GEMS
#====================
@@ -319,6 +324,13 @@ def body_class
end
}
+initializer 'tab_menu.rb',
+%q{TabMenu.configure do |config|
+ config.active_class = "active"
+end
+
+}
+
# ====================
# CONFIG
# ====================
@@ -446,7 +458,7 @@ def body_class
run "rm public/index.html"
run "rm README"
-rake 'db:migrate'
+bash_run 'rake db:migrate'
# Set up gitignore and commit base state
file '.gitignore', %q{

0 comments on commit ab02a31

Please sign in to comment.