class SpinaBlog::InstallGenerator
Public Instance Methods
copy_migrations()
click to toggle source
# File lib/generators/spina_blog/install_generator.rb, line 4 def copy_migrations return if Rails.env.production? rake 'spina_blog:install:migrations' end
feedback()
click to toggle source
# File lib/generators/spina_blog/install_generator.rb, line 13 def feedback puts puts ' Spina Blog has been succesfully installed! ' puts puts ' Restart your server and visit http://localhost:3000 in your browser!' puts " The admin backend is located at http://localhost:3000/#{Spina.config.backend_path}." puts end
run_migrations()
click to toggle source
# File lib/generators/spina_blog/install_generator.rb, line 9 def run_migrations rake 'db:migrate' end