Repository: cordova-app-harness Updated Branches: refs/heads/master 0ae1895a3 -> 7bcfa09d7
Update HarnessServer curl examples in the comments Project: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/commit/7bcfa09d Tree: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/tree/7bcfa09d Diff: http://git-wip-us.apache.org/repos/asf/cordova-app-harness/diff/7bcfa09d Branch: refs/heads/master Commit: 7bcfa09d78e558d84e8d4505fc61b3e6bee6d0ed Parents: 0ae1895 Author: Andrew Grieve <[email protected]> Authored: Tue May 27 23:07:54 2014 -0400 Committer: Andrew Grieve <[email protected]> Committed: Tue May 27 23:08:28 2014 -0400 ---------------------------------------------------------------------- www/cdvah/js/HarnessServer.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-app-harness/blob/7bcfa09d/www/cdvah/js/HarnessServer.js ---------------------------------------------------------------------- diff --git a/www/cdvah/js/HarnessServer.js b/www/cdvah/js/HarnessServer.js index 2bc1942..326944b 100644 --- a/www/cdvah/js/HarnessServer.js +++ b/www/cdvah/js/HarnessServer.js @@ -38,19 +38,19 @@ // Returns JSON of the asset manifest for the given app ID (or the first app if none is given): // curl -v "http://$IP_ADDRESS:2424/assetmanifest?appId=a.b.c" // -// Tell the interface that an update is in progress for the given app ID (or the first app if none is given): -// echo '{"transferSize": 100}' | curl -v -X POST -d @- "http://$IP_ADDRESS:2424/prepupdate?app=foo" -// // Deletes a set of files within the given app ID (or the first app if none is given): // echo '{"paths":["www/index.html"]}' | curl -v -X POST -d @- "http://$IP_ADDRESS:2424/deletefiles?appId=a.b.c" // // Updates a single file within the given app ID (or the first app if none is given): -// cat file | curl -v -X PUT -d @- "http://$IP_ADDRESS:2424/assetmanifest?appId=a.b.c&path=www/index.html&etag=1234" +// cat file | curl -v -X PUT -d @- "http://$IP_ADDRESS:2424/assetmanifest?appId=a.b.c&appType=cordova&path=www/index.html&etag=1234" // // Deletes the app with the given ID (or the first app if none is given): // curl -v -X POST "http://$IP_ADDRESS:2424/deleteapp?appId=a.b.c" // curl -v -X POST "http://$IP_ADDRESS:2424/deleteapp?all=true" # Delete all apps. - +// +// Send a set of files within the given app ID (or the first app if none is given): +// cat file | curl -v -X PUT -d @- "http://$IP_ADDRESS:2424/zippush?appId=a.b.c&apptype=cordova" +// myApp.factory('HarnessServer', ['$q', 'HttpServer', 'ResourcesLoader', 'AppHarnessUI', 'AppsService', 'notifier', 'APP_VERSION', function($q, HttpServer, ResourcesLoader, AppHarnessUI, AppsService, notifier, APP_VERSION) { var PROTOCOL_VER = 2;
