forked from pulp/pulp_python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_ruby_client.sh
More file actions
executable file
·35 lines (27 loc) · 1.07 KB
/
Copy pathbuild_ruby_client.sh
File metadata and controls
executable file
·35 lines (27 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# This script expects all <app_label>-api.json files to exist in the plugins root directory.
# It produces a <app_label>-ruby-client.tar file in the plugins root directory.
# WARNING: DO NOT EDIT!
#
# This file was generated by plugin_template, and is managed by it. Please use
# './plugin-template --github pulp_python' to update this file.
#
# For more info visit https://github.com/pulp/plugin_template
set -mveuo pipefail
# make sure this script runs at the repo root
cd "$(dirname "$(realpath -e "$0")")"/../../..
pushd ../pulp-openapi-generator
rm -rf "pulp_python-client"
# We need to copy that over to be visible in the container.
#cp "../pulp_python/python-api.json" .
#./gen-client.sh "python-api.json" "python" ruby "pulp_python"
# -------------
# The generator still needs to have it called api.json at this time...
cp "../pulp_python/api.json" .
./gen-client.sh "api.json" "python" ruby "pulp_python"
# -------------
pushd pulp_python-client
gem build pulp_python_client
tar cvf "../../pulp_python/python-ruby-client.tar" "./pulp_python_client-"*".gem"
popd
popd