Permalink
Browse files

add lib tasks

  • Loading branch information...
1 parent aeaf655 commit c7aaf937edc18af363f70ceadf2cb6249706e403 @xdite committed Nov 17, 2012
Showing with 22 additions and 1 deletion.
  1. +5 −0 lib/bootstrappers/app_builder.rb
  2. +7 −1 lib/bootstrappers/generators/app_generator.rb
  3. +10 −0 templates/tasks/dev.rake
@@ -46,6 +46,11 @@ def create_common_partial
directory 'common', 'app/views/common'
end
+
+ def add_common_rake_tasks
+ directory 'tasks', 'lib/tasks'
+ end
+
def add_jquery_ui
inject_into_file 'app/assets/javascripts/application.js',
"//= require jquery-ui\n", :before => '//= require_tree .'
@@ -21,6 +21,7 @@ def bootstrappers_customization
invoke :create_common_javascripts
invoke :create_common_stylesheets
invoke :add_common_js_library
+ invoke :add_common_rake_tasks
invoke :customize_gemfile
invoke :setup_capistrano
invoke :setup_database
@@ -63,7 +64,12 @@ def create_common_stylesheets
end
def add_common_js_library
- say 'Add add_common_js_library to the standard application.js'
+ say 'Add coomon javascripts to the standard application.js'
+ end
+
+ def add_common_rake_tasks
+ say 'Add common rake tasks'
+ build :add_common_rake_tasks
end
View
@@ -0,0 +1,10 @@
+# -*- encoding : utf-8 -*-
+namespace :dev do
+
+ desc "Rebuild system"
+ task :build => ["tmp:clear", "log:clear", "db:drop", "db:create", "db:migrate", "db:seed" ]
+
+ desc "demo"
+ task :demo => :environment do
+ end
+end

0 comments on commit c7aaf93

Please sign in to comment.