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) |