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

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

Issue 2326663002: Fix issues in assets scripts (Closed)
Patch Set: Fix gsutil delete Created 4 years, 3 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.py ('k') | no next file » | 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 b3989883389486dfb95ef2c36f672fba2d94f4b5..3265a63b9e060c0c9fddc1477fbaa349ebd33cff 100755
--- a/infra/bots/assets/assets.py
+++ b/infra/bots/assets/assets.py
@@ -25,23 +25,27 @@ import utils
def add(args):
"""Add a new asset."""
- asset_utils.Asset.add(args.asset_name, asset_utils.MultiStore())
+ asset_utils.Asset.add(args.asset_name,
+ asset_utils.MultiStore(gsutil=args.gsutil))
def remove(args):
"""Remove an asset."""
- asset_utils.Asset(args.asset_name, asset_utils.MultiStore()).remove()
+ asset_utils.Asset(args.asset_name,
+ asset_utils.MultiStore(gsutil=args.gsutil)).remove()
def download(args):
"""Download the current version of an asset."""
- asset = asset_utils.Asset(args.asset_name, asset_utils.MultiStore())
+ asset = asset_utils.Asset(args.asset_name,
+ asset_utils.MultiStore(gsutil=args.gsutil))
asset.download_current_version(args.target_dir)
def upload(args):
"""Upload a new version of the asset."""
- asset = asset_utils.Asset(args.asset_name, asset_utils.MultiStore())
+ asset = asset_utils.Asset(args.asset_name,
+ asset_utils.MultiStore(gsutil=args.gsutil))
asset.upload_new_version(args.target_dir, commit=args.commit)
« no previous file with comments | « infra/bots/assets/asset_utils.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698