Class: Incept::CLI

Inherits:
Thor
  • Object
show all
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

#versionObject



24
25
26
# File 'lib/incept/cli.rb', line 24

def version
  say "Incept version #{Incept::VERSION}"
end