Sha256: b5061c373c12b5ac0406007ec1db1727a66becfa27433f90f61593fcc29d8286

Contents?: true

Size: 331 Bytes

Versions: 8

Compression:

Stored size: 331 Bytes

Contents

require 'rails/generators'

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

    argument :app_name,   type: :string

    desc 'Hancock 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
hancock_cms-1.0.1 lib/generators/hancock/cms/robots_generator.rb
hancock_cms-2.0.0.2 lib/generators/hancock/cms/robots_generator.rb
hancock_cms-1.0.0.4 lib/generators/hancock/cms/robots_generator.rb
hancock_cms-1.0.0.3 lib/generators/hancock/cms/robots_generator.rb
hancock_cms-2.0.0.1 lib/generators/hancock/cms/robots_generator.rb
hancock_cms-1.0.0.2 lib/generators/hancock/cms/robots_generator.rb
hancock_cms-2.0.0 lib/generators/hancock/cms/robots_generator.rb
hancock_cms-1.0.0 lib/generators/hancock/cms/robots_generator.rb