Sha256: 86218b952adf1a0924a1fdc58a0e6562f8f2ed6486d161245cf81e1b356d89a3

Contents?: true

Size: 889 Bytes

Versions: 2

Compression:

Stored size: 889 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: '.dockerignore', destination: '.dockerignore' },
          { source: 'Dockerfile', destination: 'Dockerfile' },
          { source: 'Rakefile', destination: 'Rakefile' }
        ],
        templates:
        [
          { source: '.rubocop.yml.erb', destination: '.rubocop.yml' },
          { source: 'docker-compose.yml.erb', destination: 'docker-compose.yml' },
          { source: 'Gemfile.erb', destination: 'Gemfile' },
          { source: 'README.md.erb', destination: 'README.md' }
        ] }
    end

    protected

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
howitzer-2.6.1 generators/root/root_generator.rb
howitzer-2.6.0 generators/root/root_generator.rb