Victor Morales | 000de53 | 2017-08-31 17:28:10 -0500 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | set -o xtrace |
| 4 | |
| 5 | source /var/onap/functions |
| 6 | |
| 7 | multicloud_src_folder=$git_src_folder/multicloud |
| 8 | multicloud_repos=("azure" "framework" "openstack" "openstack/vmware" "openstack/windriver") |
| 9 | |
| 10 | # clone_multicloud_repos() - Function that clones the Multi Cloud repositories |
| 11 | function clone_multicloud_repos { |
| 12 | clone_repo multicloud $multicloud_src_folder |
| 13 | |
| 14 | for dirc in ${multicloud_repos[@]}; do |
| 15 | clone_repo multicloud/$dirc $multicloud_src_folder/$dirc |
| 16 | done |
| 17 | } |
| 18 | |
| 19 | # compile_multicloud_repos() - |
| 20 | function compile_multicloud_repos { |
| 21 | compile_src multicloud $multicloud_src_folder |
| 22 | |
| 23 | for dirc in ${multicloud_repos[@]}; do |
| 24 | compile_src $multicloud_src_folder/$dirc |
| 25 | done |
| 26 | } |
| 27 | |
| 28 | # install_multicloud() - |
| 29 | function install_multicloud { |
| 30 | echo "pass" |
| 31 | } |
| 32 | |
| 33 | # init_multicloud() - Function that initialize Multi Cloud services |
| 34 | function init_multicloud { |
| 35 | if [[ "$clone_repo" == "True" ]]; then |
| 36 | clone_multicloud_repos |
| 37 | if [[ "$compile_repo" == "True" ]]; then |
| 38 | compile_multicloud_repos |
| 39 | fi |
| 40 | fi |
| 41 | install_multicloud |
| 42 | } |