summaryrefslogtreecommitdiffstats
path: root/bootstrap/vagrant-onap/lib/multicloud
diff options
context:
space:
mode:
authorVictor Morales <victor.morales@intel.com>2017-11-20 16:38:28 -0800
committerVictor Morales <victor.morales@intel.com>2017-11-20 16:38:28 -0800
commitf1f1ba5dac1b531c346758072c798ceb511100b3 (patch)
treea571f9e83be31abd3c63595c04a46dcd7e901a7d /bootstrap/vagrant-onap/lib/multicloud
parent25bfc6b99f73bd02047dcc13e64390140777402a (diff)
Refactor clone and compile functions
The clone_all_* and compile_all_* functions share same instructions for performing their functionality. This change pretends to reduce the duplication of the code. Change-Id: Ief63a5a58c79af85c829602b0451637424659438 Signed-off-by: Victor Morales <victor.morales@intel.com> Issue-Id: INT-339
Diffstat (limited to 'bootstrap/vagrant-onap/lib/multicloud')
-rwxr-xr-xbootstrap/vagrant-onap/lib/multicloud18
1 files changed, 2 insertions, 16 deletions
diff --git a/bootstrap/vagrant-onap/lib/multicloud b/bootstrap/vagrant-onap/lib/multicloud
index 2f9e5d8d8..4031956e4 100755
--- a/bootstrap/vagrant-onap/lib/multicloud
+++ b/bootstrap/vagrant-onap/lib/multicloud
@@ -8,20 +8,6 @@ multicloud_repos=("multicloud" "multicloud/framework" "multicloud/openstack" \
"multicloud/azure")
openstack_release="newton"
-# clone_multicloud_repos() - Function that clones the Multi Cloud repositories
-function clone_multicloud_repos {
- for repo in ${multicloud_repos[@]}; do
- clone_repo $repo $multicloud_src_folder${repo#*multicloud}
- done
-}
-
-# compile_multicloud_repos() -
-function compile_multicloud_repos {
- for repo in ${multicloud_repos[@]}; do
- compile_src $multicloud_src_folder${repo#*multicloud}
- done
-}
-
function _build_images {
install_docker
install_python_requirements $multicloud_src_folder/openstack/$openstack_release
@@ -49,9 +35,9 @@ function install_multicloud {
# init_multicloud() - Function that initialize Multi Cloud services
function init_multicloud {
if [[ "$clone_repo" == "True" ]]; then
- clone_multicloud_repos
+ clone_repos "multicloud"
if [[ "$compile_repo" == "True" ]]; then
- compile_multicloud_repos
+ compile_repos "multicloud"
fi
fi
if [[ "$skip_get_images" == "False" ]]; then