Class: Calatrava::App

Inherits:
Thor
  • Object
show all
Defined in:
lib/calatrava/app.rb

Instance Method Summary collapse

Instance Method Details

#create(project_name) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/calatrava/app.rb', line 14

def create(project_name)
  die "template must exist" unless File.exist?(options[:template])
  die "template must be a directory" unless File.directory?(options[:template])

  proj = ProjectScript.new(project_name, options)
  proj.create(Template.new(options[:template]))
end