Sha256: 1fc82f8dbdf42f7c426a8a9c185b00e1246c6c5b01660eaa4be89471e449df08

Contents?: true

Size: 680 Bytes

Versions: 7

Compression:

Stored size: 680 Bytes

Contents

# frozen_string_literal: true

require 'rails/generators'
require_relative 'base'

module Kowl
  class RoutesGenerator < Kowl::Generators::Base
    hide!
    source_root File.expand_path(File.join('..', 'templates', 'config'), File.dirname(__FILE__))
    class_option :database, type: :string, default: 'sqlite3'
    class_option :noauth, type: :boolean, default: false
    class_option :skip_mailer, type: :boolean, default: false
    class_option :skip_sidekiq, type: :boolean, default: false

    # Generate the applications routes.rb file based on the applications options
    def setup_routes
      template('routes.rb.tt', 'config/routes.rb', force: true)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
kowl-0.0.7 lib/kowl/generators/routes_generator.rb
kowl-0.0.6 lib/kowl/generators/routes_generator.rb
kowl-0.0.5 lib/kowl/generators/routes_generator.rb
kowl-0.0.4 lib/kowl/generators/routes_generator.rb
kowl-0.0.3 lib/kowl/generators/routes_generator.rb
kowl-0.0.2 lib/kowl/generators/routes_generator.rb
kowl-0.0.1 lib/kowl/generators/routes_generator.rb