Sha256: 124f702b023a2e9757745c3ee4a35eab6e077950dd177f928838974c37300665

Contents?: true

Size: 551 Bytes

Versions: 55

Compression:

Stored size: 551 Bytes

Contents

module Cmor
  module Cms
    module Backend
      module Generators
        class InstallGenerator < Rails::Generators::Base
          desc 'Generates the initializer'

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

          def generate_initializer
            copy_file 'initializer.rb', 'config/initializers/cmor_cms_backend.rb'
          end

          def generate_routes
            route File.read(File.join(File.expand_path('../templates', __FILE__), 'routes.source'))
          end
        end
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
cmor_cms_backend-0.0.15.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.14.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.13.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.12.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.11.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.10.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.9.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.8.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.7.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.6.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.5.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.4.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.3.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.2.pre lib/generators/cmor/cms/backend/install/install_generator.rb
cmor_cms_backend-0.0.1.pre lib/generators/cmor/cms/backend/install/install_generator.rb