Class: Incept::CLI
- Inherits:
-
Thor
- Object
- Thor
- Incept::CLI
- Defined in:
- lib/incept/cli.rb
Instance Method Summary collapse
Instance Method Details
#new(project) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/incept/cli.rb', line 12 def new(project) PackageCollection.each do |package| package.selection = ask package.prompt end command = "rails new #{project} --template=#{template_file.path} #{additional_options}" say "Running `#{command}`" exec command end |
#version ⇒ Object
24 25 26 |
# File 'lib/incept/cli.rb', line 24 def version say "Incept version #{Incept::VERSION}" end |