new_app = app_name
async.auto {
- push: (cb) => @api 'app_update_files', new_app, zip_file, cb
- # TODO find out if app_update_files increments app_info.version
- # if not, drop new_info's dependency on push
old_info: (cb) => @api 'app_info', old_app, cb
- new_info: ['push', (cb) => @api 'app_info', new_app, cb ]
+ new_info: (cb) => @api 'app_info', new_app, cb
+ push: (cb) => @api 'app_update_files', new_app, zip_file, cb
copy_uris: ['push', 'old_info', 'new_info', (cb, args) =>
# There's a bug in the server where you can't set new uris and
# start the app in the same app_set_info call