Sha256: b15dd71af4b8bcc638bb4b0818332d3cd1903e78fe7c2bb490434dfbb4c15c79
Contents?: true
Size: 647 Bytes
Versions: 8
Compression:
Stored size: 647 Bytes
Contents
require 'fileutils' require 'colorize' require 'thor' module Ufo class Sequence < Thor::Group include Thor::Actions def self.source_root File.expand_path("../../template", __FILE__) end private def confirm_cli_project cli_project = File.exist?("#{project_name}/config/application.rb") unless cli_project puts "It does not look like the repo #{options[:repo]} is a cli project. Maybe double check that it is? Exited.".colorize(:red) exit 1 end end def copy_project puts "Creating new project called #{project_name}." directory ".", project_name end end end
Version data entries
8 entries across 8 versions & 1 rubygems