Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Copy template to lib/override_recipient_smtp.rb

It needs to be available to the configuration.
  • Loading branch information...
commit bc587932a8abc51b4366569e51c9ec531376012d 1 parent d18efe0
@croaky croaky authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.