Sha256: 9571f904e3e5696e02c4357dce8cf59d32a1c6dc01b1861e1ef0512b71ed9975

Contents?: true

Size: 609 Bytes

Versions: 4

Compression:

Stored size: 609 Bytes

Contents

require_relative '../base_generator'

module Howitzer
  # This class responsible for project root files generation
  class RootGenerator < BaseGenerator
    def manifest
      { files:
        [
          { source: '.gitignore', destination: '.gitignore' },
          { source: 'Rakefile', destination: 'Rakefile' }
        ],
        templates:
        [
          { source: '.rubocop.yml.erb', destination: '.rubocop.yml' },
          { source: 'Gemfile.erb', destination: 'Gemfile' }
        ] }
    end

    protected

    def banner
      <<-MSG
  * Root files generation ...
      MSG
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
howitzer-2.5.0 generators/root/root_generator.rb
howitzer-2.4.0 generators/root/root_generator.rb
howitzer-2.3.0 generators/root/root_generator.rb
howitzer-2.2.0 generators/root/root_generator.rb