Class: Calatrava::App
- Inherits:
-
Thor
- Object
- Thor
- Calatrava::App
- 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?([:template]) die "template must be a directory" unless File.directory?([:template]) proj = ProjectScript.new(project_name, :is_dev => .dev?) proj.create(Template.new([:template])) end |