mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
change the template directory path
This commit is contained in:
@@ -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"
|
||||
|
||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
Reference in New Issue
Block a user