Sha256: 4eb3c62fd0f92746cc1273d57b2e958c20a2638052cec0326b02f3a55837ab27
Contents?: true
Size: 970 Bytes
Versions: 6
Compression:
Stored size: 970 Bytes
Contents
# frozen_string_literal: true require "thor/group" module Combustion class Generator < Thor::Group include Thor::Actions def self.source_root File.expand_path File.join(File.dirname(__FILE__), "..", "..") end def create_directories empty_directory "spec/internal" empty_directory "spec/internal/config" empty_directory "spec/internal/db" empty_directory "spec/internal/log" empty_directory "spec/internal/public" end def create_files template "templates/routes.rb", "spec/internal/config/routes.rb" template "templates/database.yml", "spec/internal/config/database.yml" template "templates/schema.rb", "spec/internal/db/schema.rb" template "templates/config.ru", "config.ru" create_file "spec/internal/public/favicon.ico" create_file "spec/internal/log/.gitignore" do "*.log" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems