bin/drby in droiuby-0.3.4 vs bin/drby in droiuby-0.3.5
- old
+ new
@@ -21,10 +21,11 @@
drby framework update [FOLDER] [options] # updates the droiuby framework from folder (default src_framework)
drby go [PROJECT_NAME] [options] [--no-project] # packages an app and uploads to an Android Device running Droiuby
drby list [options] # Lists the app instances running on the phone
drby live [PROJECT_NAME] [options] # runs a web instance of the app and tells Droiuby to load it.
drby new PROJECT_NAME [options] # Create a new project
+ drby new hybrid PROJECT_NAME [options] # Create a new hybrid project
drby pack [PROJECT_NAME] [options] # zips and packages an app
drby standalone [PROJECT_NAME] --package JAVA_PACKAGE # creates a standalone android project for the current app
[--name APP_NAME]
drby reload # uploads and then reload the current app
drby switch INSTANCE_NAME [options] # Switch to the specified instance
@@ -56,12 +57,19 @@
project = Project.new
case command
when 'new'
- project_name = ARGV[1]
+ n = 1
+ hybrid_mode = false
+ if ARGV[n] == 'hybrid'
+ n+=1
+ hybrid_mode = true
+ end
+ project_name = ARGV[n]
+
if project_name.blank?
puts "PROJECT_NAME is required"
puts "Usage: drby new PROJECT_NAME [options]"
exit(1)
end
@@ -70,10 +78,10 @@
:prompt
else
$app_name
end
- project.create(project_name, app_name, '')
+ project.create(project_name, app_name, '', hybrid_mode ? 'hybrid' : 'droiuby')
when 'reload'
project_name = ARGV[1]
project.package(project_name, nil, 'true')
project.upload(project_name, $device_ip, nil, false, false)
project.reload($device_ip)