Permalink
Browse files

default bootstrap

  • Loading branch information...
1 parent eaa1869 commit 47e808610b3ae1526076285a9b403406563c3660 @xdite committed Oct 7, 2012
Showing with 20 additions and 9 deletions.
  1. +1 −1 .gitignore
  2. +8 −1 lib/bootstrapers/app_builder.rb
  3. +11 −7 lib/bootstrapers/generators/app_generator.rb
View
@@ -14,4 +14,4 @@ rdoc
spec/reports
test/tmp
test/version_tmp
-tmp
+tmp
@@ -47,15 +47,22 @@ def add_custom_gems
end
def use_mysql_config_template
+
template 'mysql_database.yml.erb', 'config/database.yml',
:force => true
+ template 'mysql_database.yml.erb', 'config/database.yml.example',
+ :force => true
end
def create_database
bundle_command 'exec rake db:create'
end
-
+ def setup_stylesheets
+ copy_file 'app/assets/stylesheets/application.css', 'app/assets/stylesheets/application.css.scss'
+ remove_file 'app/assets/stylesheets/application.css'
+ concat_file 'import_scss_styles', 'app/assets/stylesheets/application.css.scss'
+ end
end
end
@@ -22,8 +22,7 @@ def bootstrapers_customization
invoke :customize_gemfile
invoke :setup_database
#invoke :configure_app
- invoke :setup_stylesheets
-
+ #invoke :setup_stylesheets
end
def remove_files_we_dont_need
@@ -73,14 +72,19 @@ def configure_app
# TODO
end
- def setup_stylesheets
- copy_file 'app/assets/stylesheets/application.css', 'app/assets/stylesheets/application.css.scss'
- remove_file 'app/assets/stylesheets/application.css'
- concat_file 'import_scss_styles', 'app/assets/stylesheets/application.css.scss'
- create_file 'app/assets/stylesheets/_screen.scss'
+
+
+ def customize_error_pages
+ say 'Customizing the 500/404/422 pages'
+ build :customize_error_pages
end
+ def setup_stylesheets
+ say 'Set up stylesheets'
+ build :setup_stylesheets
+ end
+
protected
def get_builder_class

0 comments on commit 47e8086

Please sign in to comment.