Sha256: ce746e27b80a81188cb8b9428321328a29a795eb01c1ce14aca18cc60393ae02

Contents?: true

Size: 587 Bytes

Versions: 56

Compression:

Stored size: 587 Bytes

Contents

module Cmor
  module Blog
    module Backend
      module Generators
        class InstallGenerator < Rails::Generators::Base
          desc 'Installs the initializer, routes and itsf_backend integration'

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

          def generate_initializer
            template 'initializer.rb', 'config/initializers/cmor_blog_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

56 entries across 56 versions & 1 rubygems

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