Sha256: 76fca026cc5e10a978f33aa843a8709d00d2ca52bb306553bf0210dba56171a4
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true module Specimen module Generator class ProjectRootGenerator < ProjectGeneratorBase DEFAULT_DIRECTORIES = %w[config lib tmp].freeze TEMPLATES_DIR = 'project/templates/root' TEMPLATES = %w[ .gemrc .gitignore .rubocop.yml Gemfile README.md ].freeze def execute! perform end no_commands do def perform create_directories(DEFAULT_DIRECTORIES) create_files_by_templates(TEMPLATES_DIR, TEMPLATES) true end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
specimen-0.0.4.alpha | lib/specimen/generator/project/project_root_generator.rb |