opengnsys_git_installer | index /home/vadim/opengnsys/opengnsys/installer/opengnsys_git_installer.py

Script para la instalación del repositorio git

Modules

argparse git grp | libarchive logging os | pwd shutil subprocess | sys tempfile

Classes

builtins.Exception(builtins.BaseException)
  RequirementException
builtins.object
  FakeTemporaryDirectory
  Oglive
  OpengnsysGitInstaller

class FakeTemporaryDirectory(builtins.object)
| FakeTemporaryDirectory(dirname) Imitación de TemporaryDirectory para depuración

Methods defined here:

__init__(self, dirname)
  Initialize self. See help(type(self)) for accurate signature.

__str__(self)
  Return str(self).

Data descriptors defined here:

__dict__
  dictionary for instance variables

__weakref__
  list of weak references to the object

class Oglive(builtins.object)
| Interfaz a utilidad oglivecli Esto es probablemente temporal hasta que se haga una conversión de oglivecli

Methods defined here:

__init__(self)
  Initialize self. See help(type(self)) for accurate signature.

get_clients(self)
  Devuelve la lista de clientes en un dict

get_default(self)
  Devuelve el cliente por defecto

Data descriptors defined here:

__dict__
  dictionary for instance variables

__weakref__
  list of weak references to the object

class OpengnsysGitInstaller(builtins.object)
| Instalador de OpenGnsys

Methods defined here:

__init__(self)
  Inicializar clase

install(self)
  Instalar
  Ejecuta todo el proceso de instalación incluyendo:
  * Dependencias
  * Configuración de authorized_keys
  * Configuración de ssh
  * Creación de repositorio
  Raises:
  RequirementException: No ejecutado por usuario root
  RequirementException: No ejecutado en Debian o Ubuntu
  RequirementException: Falta clave pública
  RequirementException: Python < 3.8

set_basepath(self, value)
  Establece ruta base

set_ignoresshkey(self, value)
  Ignorar clave de ssh

set_testmode(self, value)
  Establece el modo de prueba

set_usesshkey(self, value)
  Usar clave de ssh

Data descriptors defined here:

__dict__
  dictionary for instance variables

__weakref__
  list of weak references to the object

class RequirementException(builtins.Exception)
| RequirementException(message) Excepción que arrojamos cuando nos falta algún requisito

Method resolution order:
  RequirementException
  builtins.Exception
  builtins.BaseException
  builtins.object

Methods defined here:

__init__(self, message)
  Initialize self. See help(type(self)) for accurate signature.

Data descriptors defined here:

__weakref__
  list of weak references to the object

Static methods inherited from builtins.Exception:

__new__(*args, **kwargs) from builtins.type
  Create and return a new object. See help(type) for accurate signature.

Methods inherited from builtins.BaseException:

__delattr__(self, name, /)
  Implement delattr(self, name).

__getattribute__(self, name, /)
  Return getattr(self, name).

__reduce__(...)
  Helper for pickle.

__repr__(self, /)
  Return repr(self).

__setattr__(self, name, value, /)
  Implement setattr(self, name, value).

__setstate__(...)

__str__(self, /)
  Return str(self).

add_note(...)
  Exception.add_note(note) --
  add a note to the exception

with_traceback(...)
  Exception.with_traceback(tb) --
  set self.__traceback__ to tb and return self.

Data descriptors inherited from builtins.BaseException:

__cause__
  exception cause

__context__
  exception context

__dict__

__suppress_context__

__traceback__

args

Functions

show_error(*args)