[Command] Disable template validation for now.

Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-418.
This commit is contained in:
Eloy Durán
2014-02-04 17:03:39 +01:00
parent 086d232ba0
commit 7f79ecd295
2 changed files with 6 additions and 3 deletions

1
NEWS
View File

@@ -5,6 +5,7 @@
* Added a feature to support Subscripting (Objective-C Literals).
* Made the REPL for a OS X application work in development mode when it is
sandboxed.
* Fixed a regression with specifying external templates to `motion create'.
= RubyMotion 2.22 =

View File

@@ -63,9 +63,11 @@ module Motion; class Command
def validate!
super
help! "A name for the new project is required." unless @app_name
unless self.class.all_templates.include?(@template)
help! "Invalid template specified `#{@template}'."
end
# TODO This needs to take into account external templates (e.g. from git
# or a local path.)
#unless self.class.all_templates.include?(@template)
#help! "Invalid template specified `#{@template}'."
#end
end
def run