Sha256: 140fa14cf70c3b242b4f59f9e167bc7020a9e34fc2cbf9c3d9d389efd0a06fa0

Contents?: true

Size: 544 Bytes

Versions: 13

Compression:

Stored size: 544 Bytes

Contents

module Signum
  class InstallGenerator < Rails::Generators::Base
    source_root File.expand_path("../templates", __FILE__)

    def create_initializer_file
      template "config/initializers/signum.rb"
    end

    def add_route
      return if Rails.application.routes.routes.detect { |route| route.app.app == Signum::Engine }
      route %(mount Signum::Engine => "/signum")
    end

    def copy_migrations
      rake "signum:install:migrations"
    end

    def tailwindcss_config
      rake "signum:tailwindcss:config"
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
signum-0.7.8 lib/generators/signum/install_generator.rb
signum-0.7.4 lib/generators/signum/install_generator.rb
signum-0.7.2 lib/generators/signum/install_generator.rb
signum-0.7.1 lib/generators/signum/install_generator.rb
signum-0.7.0 lib/generators/signum/install_generator.rb
signum-0.6.0 lib/generators/signum/install_generator.rb
signum-0.5.1 lib/generators/signum/install_generator.rb
signum-0.5.0 lib/generators/signum/install_generator.rb
signum-0.4.13 lib/generators/signum/install_generator.rb
signum-0.4.12 lib/generators/signum/install_generator.rb
signum-0.4.11 lib/generators/signum/install_generator.rb
signum-0.4.10 lib/generators/signum/install_generator.rb
signum-0.4.8 lib/generators/signum/install_generator.rb