
Finishing work on introducing features in the sdk/cli it is necessary to populate sync/async feature macros already in templates. Since this is anyway causing major regeneration pull object-store (the sdk part) and fix new issues (caused by sequential updates without mass regeneration - to be fixed by introducing a separate job). Change-Id: I4f69325cf31a1ab677b4da96bf2dc92f17e85637
23 lines
954 B
Bash
Executable File
23 lines
954 B
Bash
Executable File
#!/usr/bin/bash -e
|
|
#
|
|
|
|
WRK_DIR=wrk
|
|
METADATA=metadata
|
|
DST=~/workspace/github/gtema/openstack
|
|
NET_RESOURCES=(
|
|
"account"
|
|
"container"
|
|
"object"
|
|
)
|
|
|
|
openstack-codegenerator --work-dir ${WRK_DIR} --target rust-sdk --metadata ${METADATA}/object-store_metadata.yaml --service object-store
|
|
# openstack-codegenerator --work-dir ${WRK_DIR} --target rust-cli --metadata ${METADATA}/object-store_metadata.yaml --service object-store
|
|
|
|
|
|
for resource in "${NET_RESOURCES[@]}"; do
|
|
cp -av "${WRK_DIR}/rust/openstack_sdk/src/api/object_store/v1/${resource}" ${DST}/openstack_sdk/src/api/object_store/v1
|
|
cp -av "${WRK_DIR}/rust/openstack_sdk/src/api/object_store/v1/${resource}.rs" ${DST}/openstack_sdk/src/api/object_store/v1
|
|
#cp -av "${WRK_DIR}/rust/openstack_cli/src/object_store/v1/${resource}" ${DST}/openstack_cli/src/object_store/v1
|
|
#cp -av "${WRK_DIR}/rust/openstack_cli/tests/object_store/v1/${resource}" ${DST}/openstack_cli/tests/object_store/v1
|
|
done;
|