Rename 'linux' folder and operations to 'live'

ogLive related operations are named inside a 'Linux' folder, also its
python class is named OgLinuxOperations. Rename every 'linux' occurrence
with live to further clarify this folder and operations.

 - OgLinuxOperations -> OgLiveOperations
 - src/linux/ -> src/live/

Fixes: 1377acee ('Rename 'linux' mode to 'live' mode')
more_events
Jose M. Guisado 2020-12-03 12:29:50 +00:00 committed by OpenGnSys Support Team
parent 900a1c8f08
commit f0aa3df485
4 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ setup(name='ogclient',
author='Soleta OpenGnsys Support Team',
author_email='soporte-og@soleta.eu',
url='https://github.com/opengnsys/ogClient',
packages=['src', 'src.linux', 'src.virtual'],
packages=['src', 'src.live', 'src.virtual'],
scripts=['ogclient'],
data_files=[('cfg', ['cfg/ogclient.json']),
('', ['COPYING'])]

View File

@ -13,7 +13,7 @@ from src.ogClient import ogClient
OG_SHELL = '/bin/bash'
class OgLinuxOperations:
class OgLiveOperations:
def __init__(self, config):
self._url = config['opengnsys']['url']
self._url_log = config['opengnsys']['url_log']

View File

@ -256,8 +256,8 @@ class ogRest():
self.samba_config = self.CONFIG['samba']
if self.mode == 'live':
from src.linux.ogOperations import OgLinuxOperations
self.operations = OgLinuxOperations(self.CONFIG)
from src.live.ogOperations import OgLiveOperations
self.operations = OgLiveOperations(self.CONFIG)
elif self.mode == 'virtual':
from src.virtual.ogOperations import \
OgVirtualOperations