This repository was archived by the owner on Mar 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgenerar.sh
63 lines (54 loc) · 1.76 KB
/
generar.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/env bash
# -*- ENCODING: UTF-8 -*-
##
## @author Raúl Caro Pastorino
## @copyright Copyright © 2018 Raúl Caro Pastorino
## @license https://wwww.gnu.org/licenses/gpl.txt
## @email tecnico@fryntiz.es
## @web www.fryntiz.es
## @github https://github.com/fryntiz
## @gitlab https://gitlab.com/fryntiz
## @twitter https://twitter.com/fryntiz
##
## Guía de estilos aplicada:
## @style https://github.com/fryntiz/Bash_Style_Guide
############################
## INSTRUCCIONES ##
############################
############################
## IMPORTACIONES ##
############################
############################
## CONSTANTES ##
############################
############################
## VARIABLES ##
############################
############################
## FUNCIONES ##
############################
python_preconfiguraciones() {
echo -e "$VE Generando Preconfiguraciones para el nuevo proyecto$CL"
}
python_instalacion() {
echo -e "$VE Creando proyecto con el nombre$RO $nombre$CL"
compruebaExisteProyecto
generarEstructura "$WORKSCRIPT/python/estructura"
echo -e "$VE Descargando plantilla$CL"
wget 'https://github.com/fryntiz/Debian_Developer_Init/raw/master/conf/home/Plantillas/Gen%C3%A9ricas/Scripts/Python3.py' -O "$nombre/main.py"
}
python_postconfiguraciones() {
echo -e "$VE Generando Postconfiguraciones$CL"
permisos
inicializar_GIT
}
###########################
## EJECUCIÓN ##
###########################
## Recibe el nombre del proyecto a crear y lo genera
generar_python() {
echo -e "$VE Generador de proyecto Python$CL"
python_preconfiguraciones
python_instalacion
python_postconfiguraciones
}