JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
app_info can be before or after app_update_files
authorJason Woofenden <jason@jasonwoof.com>
Wed, 13 Feb 2013 17:38:30 +0000 (12:38 -0500)
committerJason Woofenden <jason@jasonwoof.com>
Wed, 13 Feb 2013 17:38:30 +0000 (12:38 -0500)
client.coffee

index b395605..74d7a5c 100755 (executable)
@@ -54,11 +54,9 @@ commands.app_publish_seamless = (token, app_name, zip_file, callback) ->
                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