Sha256: 7d2597bddf9549574f906260e292dacc5c28dee58d0a666bdb373fc4ad37cfd1

Contents?: true

Size: 610 Bytes

Versions: 7

Compression:

Stored size: 610 Bytes

Contents

# frozen_string_literal: true

module SpinaBlog
  class InstallGenerator < Rails::Generators::Base
    def copy_migrations
      return if Rails.env.production?

      rake 'spina_conferences_blog:install:migrations'
    end

    def run_migrations
      rake 'db:migrate'
    end

    def feedback
      puts
      puts '    Spina Conferences 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
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
spina-admin-conferences-blog-0.3.1 lib/generators/spina_admin_conferences_blog/install_generator.rb
spina-admin-conferences-blog-0.2.0 lib/generators/spina_admin_conferences_blog/install_generator.rb
spina-admin-conferences-blog-0.1.4 lib/generators/spina_admin_conferences_blog/install_generator.rb
spina-admin-conferences-blog-0.1.3 lib/generators/spina_admin_conferences_blog/install_generator.rb
spina-admin-conferences-blog-0.1.2 lib/generators/spina_admin_conferences_blog/install_generator.rb
spina-admin-conferences-blog-0.1.1 lib/generators/spina_admin_conferences_blog/install_generator.rb
spina-admin-conferences-blog-0.1.0 lib/generators/spina_admin_conferences_blog/install_generator.rb