Sha256: 18c3d81a3d513615cd08f45a08606dec5795d1feae76879f6f98904f0332cffd
Contents?: true
Size: 939 Bytes
Versions: 9
Compression:
Stored size: 939 Bytes
Contents
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
9 entries across 9 versions & 1 rubygems