Sha256: 0e4604fcfea0f95ce9443edda5da72bcfbd77b06a95580337aa01688fa149fae

Contents?: true

Size: 629 Bytes

Versions: 11

Compression:

Stored size: 629 Bytes

Contents

#!/bin/zsh

DEFAULT_BRANCH='development'

clone_repo () {
  REPO=${1}
  BRANCH=${2:-$DEFAULT_BRANCH}

  echo "Cloning ${REPO} into ${PWD}..."

  confirm_if_overwrite ${REPO}

  {
    git clone git@bitbucket.org:corptools/${REPO}.git
  } || {
    git clone https://${LOGNAME}@bitbucket.org/corptools/roro.git
  }

  SUCCESS+=("Successfully cloned ${green}$REPO${default}")
}

clone_repo api
clone_repo client-api
clone_repo ct-frontend
clone_repo frontend
clone_repo internal-docs master
clone_repo affiliate-api-docs master
clone_repo public-api
clone_repo tokenizer-rails

for MESSAGE in "${SUCCESS[@]}"; do
  echo $MESSAGE
done

Version data entries

11 entries across 6 versions & 1 rubygems

Version Path
roro-0.3.30 lib/roro/stacks/stories_v1/templates/roro/scripts/initialize/clone_repos.sh
roro-0.3.28 lib/roro/stacks/stories_v1/templates/roro/scripts/initialize/clone_repos.sh
roro-0.3.28 lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/initialize/clone_repos.sh
roro-0.3.27 lib/roro/stacks/stories_v1/templates/roro/scripts/initialize/clone_repos.sh
roro-0.3.27 lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/initialize/clone_repos.sh
roro-0.3.25 lib/roro/stacks/stories_v1/templates/roro/scripts/initialize/clone_repos.sh
roro-0.3.25 lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/initialize/clone_repos.sh
roro-0.3.24 lib/roro/stacks/stories_v1/templates/roro/scripts/initialize/clone_repos.sh
roro-0.3.24 lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/initialize/clone_repos.sh
roro-0.3.23 lib/roro/stacks/catalog/unstoppable/developer_styles/sashimi/stories/roro/templates/scripts/initialize/clone_repos.sh
roro-0.3.23 lib/roro/stacks/stories_v1/templates/roro/scripts/initialize/clone_repos.sh