Sha256: 08c1b52077cebc4f60df881827172aa374c1d90a6a434c18c3782cc2ba7a3166

Contents?: true

Size: 286 Bytes

Versions: 8

Compression:

Stored size: 286 Bytes

Contents

require 'rails/generators'

module Enjoy::Cms
  class RobotsGenerator < Rails::Generators::Base
    source_root File.expand_path("../templates", __FILE__)

    desc 'Enjoy CMS robots.txt generator'
    def install
      template('robots.txt.erb', 'public/robots.txt')
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enjoy_cms-0.4.1 lib/generators/enjoy/cms/robots_generator.rb
enjoy_cms-0.4.0.5 lib/generators/enjoy/cms/robots_generator.rb
enjoy_cms-0.4.0.4 lib/generators/enjoy/cms/robots_generator.rb
enjoy_cms-0.4.0.3 lib/generators/enjoy/cms/robots_generator.rb
enjoy_cms-0.4.0.2 lib/generators/enjoy/cms/robots_generator.rb
enjoy_cms-0.4.0.1 lib/generators/enjoy/cms/robots_generator.rb
enjoy_cms-0.4.0 lib/generators/enjoy/cms/robots_generator.rb
enjoy_cms-0.4.0.beta3 lib/generators/enjoy/cms/robots_generator.rb