Sha256: 171be062653622ea0144979126888f5d9a1f8214d81051dbb1e4fd0fdc01ddad

Contents?: true

Size: 507 Bytes

Versions: 50

Compression:

Stored size: 507 Bytes

Contents

module Cmor
  module Core
    module Generators
      class InstallGenerator < Rails::Generators::Base
        desc 'Installs the frontend controlle and initializer'

        source_root File.expand_path('../templates', __FILE__)

        def generate_controller
          copy_file 'frontend_controller.rb', 'app/controllers/frontend_controller.rb'
        end

        def generate_initializer
          template 'initializer.rb', 'config/initializers/cmor_core.rb'
        end
      end
    end
  end
end

Version data entries

50 entries across 50 versions & 1 rubygems

Version Path
cmor_core-0.0.38.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.37.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.36.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.35.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.34.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.33.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.32.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.31.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.30.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.29.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.28.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.27.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.26.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.25.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.24.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.22.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.21.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.20.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.19.pre lib/generators/cmor/core/install/install_generator.rb
cmor_core-0.0.18.pre lib/generators/cmor/core/install/install_generator.rb