Skip to content

Commit

Permalink
Merge pull request #25 from OrcaPracticas/develop
Browse files Browse the repository at this point in the history
[PULLREQUEST DEV => MASTER] 20190305 12:24
  • Loading branch information
konami12 authored Mar 5, 2019
2 parents 376573f + 78d200a commit 0c0afa8
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .main
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# -------------------------------------------------------- #

REPOSITORY_PATH="~/repositorios"
REPOSITIRY_PRACTICAS="${REPOSITORY_PATH}/GitLab/OrcaTools/tools"
REPOSITORY_WL="${REPOSITORY_PATH}/WhiteLabel"
REPOSITORY_TVSA="${REPOSITORY_PATH}/TVSA"
REPOSITORY_CORE="${REPOSITORY_TVSA}/core_app"
Expand Down Expand Up @@ -47,4 +48,13 @@ alias git_update_dev="git pull origin ${GIT_DEFAULT_BRANCH}"
alias gm="git merge ${GIT_DEFAULT_BRANCH}"
alias git_dev="gco ${GIT_DEFAULT_BRANCH}"
alias git_master="gco master"
alias td="tree -L 1 -duhg"
alias td="tree -L 1 -duhg"

# -------------------------------------------------------- #
# Utilidades
# -------------------------------------------------------- #

source ~/repositorios/OrcaPracticas/happy-shell/tools/.utilities
source ~/repositorios/OrcaPracticas/happy-shell/tools/.app
source ~/repositorios/OrcaPracticas/happy-shell/tools/.wl
source ~/repositorios/OrcaPracticas/happy-shell/tools/.update
86 changes: 86 additions & 0 deletions tools/.update
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# -------------------------------------------------------- #
# Actualizacion de repos
#
# @package hapy-shell.
# @subPacage Tools.
# @autor jorge.mendez.ortega@gmail.com
# -------------------------------------------------------- #


# -------------------------------------------------------- #
# Permite realizar la actualizacion de los repositorios
#
# INFO
#
# -c : Actualiza el core de la app
# -ui : Actualiza todas las ui's de la app
# -wl : Actualiza todos los componentes.
# -app : Actualiza el core y las ui's
# -all : Actualiza core, ui's y componentes
#
# USO
#
# up [modificador]
#
# EJEMPLOS
#
# up -c
# up -ui
# up -wl
# up -app
# up -all
# -------------------------------------------------------- #
up(){
action=$1
interface=$2
case $action in
-c)
logs -i "Actualizando el core"
core
git_dev
git_update
yip
logs -s "Finde actualizacion del core"
;;
-ui)
uis
logs -s "Actualizando UIS"
ficheros=(`ls`)
for item in ${ficheros[*]}
do
if [[ $item =~ "ui-" ]]
then
logs -m "Actualizando la ${item}"
app ${item//ui-/}
git_dev
git_update
fi
done
logs -s "Finde actualizacion de UIS"
;;
-wl)
wl
ficheros=(`ls`)
for item in ${ficheros[*]}
do
logs -m "Actualizando el ${item}"
label $item
git_dev
git_update
yip
done
;;
-app)
up -c
up -ui
;;
-all)
up -c
up -ui
up -wl
;;
*)
logs -e "Facilite una de las opciones de actualizacion"
;;
esac
}

0 comments on commit 0c0afa8

Please sign in to comment.