Commit ffc7ca0b authored by Willi Rath's avatar Willi Rath

Visually separate Jblob code-block

parent c99480f9
......@@ -292,6 +292,10 @@ class JblobCred(Renderer):
"""
template = textwrap.dedent("""\
# == Get data from CERA ==
# Download Jblob to a tmp directory and use it to download a list of
# given data sets from CERA:
jblob_tmp_dir=$(mktemp -d)
pushd "${{jblob_tmp_dir}}"
curl \\
......@@ -308,6 +312,7 @@ class JblobCred(Renderer):
--dataset {cera_data_sets_string} \\
--dir {prefix}
rm -rf "${{jblob_tmp_dir}}"
# == Get data from CERA ==
""")
......
......@@ -145,6 +145,10 @@ wget -nv -r -c -np -nH --cut-dirs=2 --accept "*.nc,*.cdf,*.nc.gz" -P "data" \
"https://www.example.com/"
wget -nv -r -c -np -nH --cut-dirs=2 --user="$STH_USER" --password="$STH_PWD" \
--accept "*.nc" -P "data" "https://www.example.com/restricted/"
# == Get data from CERA ==
# Download Jblob to a tmp directory and use it to download a list of
# given data sets from CERA:
jblob_tmp_dir=$(mktemp -d)
pushd "${{jblob_tmp_dir}}"
curl \\
......@@ -161,6 +165,7 @@ java -cp "${{jblob_jar}}":"${{commons_jar}}" \\
--dataset ERAIN_SFC12_MM_EWSS_180 ERAIN_SFC12_MM_NSSS_181 \\
--dir data
rm -rf "${{jblob_tmp_dir}}"
# == Get data from CERA ==
curl -o "doc/doc_01.html" \
"https://www.example.com/doc_01.html"
......
......@@ -62,6 +62,10 @@ def test_jblob_cred_rendering():
"example_ds_02"],
"username_var": "ASDF_USER", "password_var": "ASDF_PWD"}
target_string = textwrap.dedent("""\
# == Get data from CERA ==
# Download Jblob to a tmp directory and use it to download a list of
# given data sets from CERA:
jblob_tmp_dir=$(mktemp -d)
pushd "${jblob_tmp_dir}"
curl \\
......@@ -78,6 +82,7 @@ def test_jblob_cred_rendering():
--dataset example_ds_01 example_ds_02 \\
--dir pref
rm -rf "${jblob_tmp_dir}"
# == Get data from CERA ==
""")
renderer = data_repo_renderer.JblobCred(yaml_dict=yaml_dict)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment