Sha256: 939fcb2b475d25f004403147929e2a3853d1afb6217f06a972236c3a3d590279

Contents?: true

Size: 569 Bytes

Versions: 5

Compression:

Stored size: 569 Bytes

Contents

require "rails/generators/base"
module AppManager
    module Generators
        class InstallGenerator < Rails::Generators::Base
            source_root File.expand_path('../templates', __FILE__)

            def mount_engine
             route("mount AppManager::Engine, at: '/'")
            end

			# def create_initializer_file
			#  copy_file("plan_features.rb", "config/initializers/plan_features.rb")
			# end

			def create_app_manager_initializer
		      template("app_manager.rb", "config/initializers/app_manager.rb")
            end

        end
    end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
app_manager-1.1.0 lib/generators/app_manager/install/install_generator.rb
app_manager-1.0.3 lib/generators/app_manager/install/install_generator.rb
app_manager-1.0.2 lib/generators/app_manager/install/install_generator.rb
app_manager-1.0.1 lib/generators/app_manager/install/install_generator.rb
app_manager-1.0.0 lib/generators/app_manager/install/install_generator.rb