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



9
10
11
12
13
14
15
16
# File 'lib/calatrava/app.rb', line 9

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,
                           :is_dev => options.dev?)
  proj.create(Template.new(options[:template]))
end