blob: 1126d614697335e54bcc33c5bc47e367e858b409 [file] [log] [blame]
Victor Morales000de532017-08-31 17:28:10 -05001#!/bin/bash
2
3set -o xtrace
4
5source /var/onap/functions
6
7multicloud_src_folder=$git_src_folder/multicloud
8multicloud_repos=("azure" "framework" "openstack" "openstack/vmware" "openstack/windriver")
9
10# clone_multicloud_repos() - Function that clones the Multi Cloud repositories
11function 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() -
20function 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() -
29function install_multicloud {
30 echo "pass"
31}
32
33# init_multicloud() - Function that initialize Multi Cloud services
34function 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}