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

Unified Diff: infra/bots/assets/assets.py

Issue 2085473002: Add CIPD support for bot assets (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Update CIPD to include new pkg-delete command Created 4 years, 6 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 | « infra/bots/assets/asset_utils_test.py ('k') | infra/bots/download_asset.isolate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: infra/bots/assets/assets.py
diff --git a/infra/bots/assets/assets.py b/infra/bots/assets/assets.py
index 538a41b58596cef57b2383b3e72f4ec4bfce8972..b3989883389486dfb95ef2c36f672fba2d94f4b5 100755
--- a/infra/bots/assets/assets.py
+++ b/infra/bots/assets/assets.py
@@ -25,23 +25,23 @@ import utils
def add(args):
"""Add a new asset."""
- asset_utils.Asset.add(args.asset_name)
+ asset_utils.Asset.add(args.asset_name, asset_utils.MultiStore())
def remove(args):
"""Remove an asset."""
- asset_utils.Asset(args.asset_name).remove()
+ asset_utils.Asset(args.asset_name, asset_utils.MultiStore()).remove()
def download(args):
"""Download the current version of an asset."""
- asset = asset_utils.Asset(args.asset_name, gsutil=args.gsutil)
+ asset = asset_utils.Asset(args.asset_name, asset_utils.MultiStore())
asset.download_current_version(args.target_dir)
def upload(args):
"""Upload a new version of the asset."""
- asset = asset_utils.Asset(args.asset_name, gsutil=args.gsutil)
+ asset = asset_utils.Asset(args.asset_name, asset_utils.MultiStore())
asset.upload_new_version(args.target_dir, commit=args.commit)
« no previous file with comments | « infra/bots/assets/asset_utils_test.py ('k') | infra/bots/download_asset.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698