romikoops/howitzer

View on GitHub
generators/root/root_generator.rb

Summary

Maintainability
A
0 mins
Test Coverage
require_relative '../base_generator'

module Howitzer
  class RootGenerator < BaseGenerator
    def manifest
      { files:
        [
          { source: '.gitignore', destination: '.gitignore'},
          { source: 'Gemfile', destination: 'Gemfile'},
          { source: 'Rakefile', destination: 'Rakefile'},
          { source: 'boot.rb', destination: 'boot.rb'}
        ]
      }
    end

    protected
    def banner
      <<-EOF
  * Root files generation ...
      EOF
    end
  end
end