change the template directory path

This commit is contained in:
Watson
2013-04-19 23:15:03 +09:00
parent 990e352d62
commit 126d006625
14 changed files with 1 additions and 1 deletions

View File

@@ -117,7 +117,7 @@ module Motion; module Project
def initialize(app_name, template_name)
@name = @app_name = app_name
@template_name = template_name
@template_directory = File.expand_path(File.join(__FILE__, "../../template/#{@template_name}"))
@template_directory = File.expand_path(File.join(__FILE__, "../template/#{@template_name}"))
unless app_name.match(/^[\w\s-]+$/)
fail "Invalid app name"

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB