Skip to content

Commit

Permalink
make gsutil rsync recursive (#297)
Browse files Browse the repository at this point in the history
* make gsutil rsync recursive

* reformatted with black

* add threaded flag for gsutil rsync
  • Loading branch information
KBodolai committed Mar 16, 2023
1 parent 851c922 commit 4d04432
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
1 change: 0 additions & 1 deletion ccds/monkey_patch.py
Expand Up @@ -97,7 +97,6 @@ def prompt_for_config(context, no_input=False):

# Second pass; handle the dictionaries.
for key, raw in context["cookiecutter"].items():

try:
if isinstance(raw, dict):
# We are dealing with a dict variable
Expand Down
1 change: 0 additions & 1 deletion tests/test_creation.py
Expand Up @@ -131,7 +131,6 @@ def verify_makefile_commands(root, config):
elif config["environment_manager"] == "virtualenv":
harness_path = test_path / "virtualenv_harness.sh"
elif config["environment_manager"] == "pipenv":

harness_path = test_path / "pipenv_harness.sh"
elif config["environment_manager"] == "none":
return True
Expand Down
4 changes: 2 additions & 2 deletions {{ cookiecutter.repo_name }}/Makefile
Expand Up @@ -53,7 +53,7 @@ sync_data_down:
az storage blob download-batch -s {{ cookiecutter.dataset_storage.azure.container }}/data/ \
-d data/
{% elif cookiecutter.dataset_storage.gcs -%}
gsutil rsync gs://{{ cookiecutter.dataset_storage.gcs.bucket }}/data/ data/
gsutil -m rsync -r gs://{{ cookiecutter.dataset_storage.gcs.bucket }}/data/ data/
{% endif %}

## Upload Data to storage system
Expand All @@ -65,7 +65,7 @@ sync_data_up:
az storage blob upload-batch -d {{ cookiecutter.dataset_storage.azure.container }}/data/ \
-s data/
{% elif cookiecutter.dataset_storage.gcs -%}
gsutil rsync data/ gs://{{ cookiecutter.dataset_storage.gcs.bucket }}/data/
gsutil -m rsync -r data/ gs://{{ cookiecutter.dataset_storage.gcs.bucket }}/data/
{% endif %}
{% endif %}

Expand Down

0 comments on commit 4d04432

Please sign in to comment.