Browse files

Copy template to lib/override_recipient_smtp.rb

It needs to be available to the configuration.
  • Loading branch information...
1 parent d18efe0 commit bc587932a8abc51b4366569e51c9ec531376012d @croaky croaky committed Oct 10, 2012
Showing with 10 additions and 0 deletions.
  1. +4 −0 lib/suspenders/app_builder.rb
  2. +6 −0 lib/suspenders/generators/app_generator.rb
View
4 lib/suspenders/app_builder.rb
@@ -229,6 +229,10 @@ def create_github_repo(repo_name)
run "#{path_addition} hub create #{repo_name}"
end
+ def copy_libraries
+ copy_file 'override_recipient_smtp.rb', 'lib/override_recipient_smtp.rb'
+ end
+
def copy_miscellaneous_files
copy_file 'errors.rb', 'config/initializers/errors.rb'
end
View
6 lib/suspenders/generators/app_generator.rb
@@ -38,6 +38,7 @@ def suspenders_customization
invoke :setup_database
invoke :configure_app
invoke :setup_stylesheets
+ invoke :copy_libraries
invoke :copy_miscellaneous_files
invoke :customize_error_pages
invoke :remove_routes_comment_lines
@@ -178,6 +179,11 @@ def init_git
build :init_git
end
+ def copy_libraries
+ say 'Copying libraries'
+ build :copy_libraries
+ end
+
def copy_miscellaneous_files
say 'Copying miscellaneous support files'
build :copy_miscellaneous_files

0 comments on commit bc58793

Please sign in to comment.