Sha256: 665cf19f4fc618b46f535dfba070cfdd1e020e20ae74e6a3657b4e1149012671
Contents?: true
Size: 658 Bytes
Versions: 1
Compression:
Stored size: 658 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 config/specimen.yml ].freeze # argument :config 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.2.alpha | lib/specimen/generator/project/project_root_generator.rb |