-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from OrcaPracticas/develop
[PULLREQUEST DEV => MASTER] 20190304 23:10
- Loading branch information
Showing
4 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
# -------------------------------------------------------- # | ||
# Utilidades para las uis. | ||
# | ||
# @package OrcaTools. | ||
# @subPacage Tools. | ||
# @category Shell | ||
# @autor jorge.mendez.ortega@gmail.com | ||
# -------------------------------------------------------- # | ||
|
||
# -------------------------------------------------------- # | ||
# Permite los comandos basicos para whitelabel. | ||
# | ||
# INFO | ||
# | ||
# -i : instala el componente de White Label. | ||
# -l : Brinda un listado de los componentes de WhiteLAbel. | ||
# nombre : Busca el componente y te posiciona en el. | ||
# | ||
# USO | ||
# | ||
# label [modificador] [nombre del widget] | ||
# | ||
# EJEMPLOS | ||
# | ||
# label telehit (levanta una ui) | ||
# label -i widget-dummy instala el componente | ||
# label -l listado de componentes | ||
# label widget-dummy accede al compnente | ||
# -------------------------------------------------------- # | ||
label(){ | ||
option=$1 | ||
widget=$2 | ||
case $option in | ||
-i) | ||
if [ $widget ] | ||
then | ||
wl | ||
clone televisa-digital/$widget | ||
else | ||
logs -e "Introdusca el nombre del componente de White label" | ||
fi | ||
;; | ||
-l) | ||
logs -i "Listado de componentes White label" | ||
wl | ||
td | ||
logs -s "Fin del listado" | ||
;; | ||
*) | ||
logs -i "Entrando al directorio de ${option}" | ||
wl | ||
if [ -d "${option}" ] | ||
then | ||
cd $option | ||
logs -s "Acceso correcto" | ||
else | ||
logs -e "Directorio no existente ${option}" | ||
fi | ||
;; | ||
esac | ||
} |