Sha256: 102de105ef70da508681f73909069d4d0392f20f29317959f109e171f9b5ffb6

Contents?: true

Size: 692 Bytes

Versions: 3

Compression:

Stored size: 692 Bytes

Contents

require 'rails/generators/base'
require 'thor'

module AmpHtml
    module Generators

        class AmpHtmlGenerator < Rails::Generators::Base

            source_root File.join File.dirname(__FILE__), 'templates'
            desc 'Install amp-html'

            def create_layout
                template 'layout.html.erb', 'app/views/layouts/amp.html.erb'
            end

            def create_assets
                template 'application.css', 'app/assets/stylesheets/amp/application.css'
            end

            def create_initializer
                template 'initializer.rb', 'config/initializers/amp-html.rb'
            end

        end

    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
amp-html-1.1.0 lib/generators/amp_html_generator.rb
amp-html-1.0.1 lib/generators/amp_html_generator.rb
amp-html-1.0.0 lib/generators/amp_html_generator.rb