Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

run commands with bash, override generator

  • Loading branch information...
commit ab02a31f5d2ec7fe93b51335c8f748678e34b180 1 parent 95d030b
@jmondo jmondo authored
Showing with 13 additions and 1 deletion.
  1. +13 −1 template.rb
View
14 template.rb
@@ -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{
Please sign in to comment.
Something went wrong with that request. Please try again.