Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2821)

Unified Diff: dashboard/bin/deploy

Issue 2701113002: Migrate to the Google Cloud SDK. (Closed)
Patch Set: Work for both old and new SDKs. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « catapult_build/appengine_deploy.py ('k') | dashboard/bin/run_py_tests » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/bin/deploy
diff --git a/dashboard/bin/deploy b/dashboard/bin/deploy
index 3addcc9bcad52cd2f120bcca77d2cb27b6a17c1e..36045c3c49c36c6895376fbe50af1f914b06c4b9 100755
--- a/dashboard/bin/deploy
+++ b/dashboard/bin/deploy
@@ -3,7 +3,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-import argparse
import os
import sys
@@ -14,21 +13,15 @@ def _AddToPathIfNeeded(path):
def Main():
- catapult_path = os.path.abspath(os.path.join(
- os.path.dirname(__file__), '..', '..'))
- parser = argparse.ArgumentParser()
- parser.add_argument('--appid', default='chromeperf')
- parser.add_argument('--service', default=None)
- args = parser.parse_args()
-
- _AddToPathIfNeeded(os.path.join(catapult_path, 'dashboard'))
+ dashboard_path = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
+ _AddToPathIfNeeded(dashboard_path)
import dashboard
- paths = dashboard.PathsForDeployment()
+ catapult_path = os.path.dirname(dashboard_path)
_AddToPathIfNeeded(catapult_path)
from catapult_build import appengine_deploy
- appengine_deploy.AppcfgUpdate(paths, app_id=args.appid,
- service_name=args.service)
+
+ appengine_deploy.Deploy(dashboard.PathsForDeployment(), sys.argv[1:])
if __name__ == '__main__':
« no previous file with comments | « catapult_build/appengine_deploy.py ('k') | dashboard/bin/run_py_tests » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698