Sha256: ae135e9a7f520f17b2549723db9357b5085ec5a039e5a9430499b9004d2ea14e
Contents?: true
Size: 820 Bytes
Versions: 9
Compression:
Stored size: 820 Bytes
Contents
module PraxisGen class App < Thor include Thor::Actions namespace "praxis:app" def self.source_root File.dirname(__FILE__) + "/templates/generator/empty_app" end argument :app_name, required: true desc "new", "Generates a blank new app under <app_name> (with a full skeleton ready to start coding)" # Generator for a blank new app (with a full skeleton ready to get you going) def new puts "Creating new blank Praxis app under #{app_name}" # Copy example files ['config.ru','Gemfile','Rakefile','README.md'].each do |file| copy_file file, verbose: true end # Copy example directories root_dirs = ['config','app','design','spec','docs'] root_dirs.each do |dir| directory dir, recursive: true end end end end
Version data entries
9 entries across 9 versions & 1 rubygems