Вынес все модули в отдельный каталог modules
This commit is contained in:
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
bin/
|
||||||
|
lib/
|
||||||
|
lib64
|
||||||
|
include/
|
||||||
|
__pycache__/
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
import ssh as s
|
from modules import ssh as s
|
||||||
import config
|
import config
|
||||||
|
|
||||||
# Загружаем конфигурацию
|
# Загружаем конфигурацию
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
Демонстрирует прямое использование C1ClusterOperations без основного класса ssh
|
Демонстрирует прямое использование C1ClusterOperations без основного класса ssh
|
||||||
"""
|
"""
|
||||||
import config
|
import config
|
||||||
from ssh_base import SSHBase
|
from modules.ssh_base import SSHBase
|
||||||
from c1_cluster import C1ClusterOperations
|
from modules.c1_cluster import C1ClusterOperations
|
||||||
|
|
||||||
|
|
||||||
def example_basic_usage():
|
def example_basic_usage():
|
||||||
|
|||||||
@@ -5,8 +5,8 @@
|
|||||||
Демонстрирует прямое использование PostgreSQLOperations без основного класса ssh
|
Демонстрирует прямое использование PostgreSQLOperations без основного класса ssh
|
||||||
"""
|
"""
|
||||||
import config
|
import config
|
||||||
from ssh_base import SSHBase
|
from modules.ssh_base import SSHBase
|
||||||
from postgresql import PostgreSQLOperations
|
from modules.postgresql import PostgreSQLOperations
|
||||||
|
|
||||||
|
|
||||||
def example_basic_usage():
|
def example_basic_usage():
|
||||||
|
|||||||
13
modules/__init__.py
Normal file
13
modules/__init__.py
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
# -*- coding: utf-8 -*-
|
||||||
|
"""
|
||||||
|
Модули SSH клиента для миграции 1С
|
||||||
|
"""
|
||||||
|
|
||||||
|
from .ssh_base import SSHBase
|
||||||
|
from .postgresql import PostgreSQLOperations
|
||||||
|
from .c1_cluster import C1ClusterOperations
|
||||||
|
from .ssh import ssh
|
||||||
|
|
||||||
|
__all__ = ['SSHBase', 'PostgreSQLOperations', 'C1ClusterOperations', 'ssh']
|
||||||
|
|
||||||
@@ -4,9 +4,9 @@
|
|||||||
Основной модуль SSH клиента для миграции 1С
|
Основной модуль SSH клиента для миграции 1С
|
||||||
Объединяет базовые SSH операции, PostgreSQL и 1С кластер
|
Объединяет базовые SSH операции, PostgreSQL и 1С кластер
|
||||||
"""
|
"""
|
||||||
from ssh_base import SSHBase
|
from .ssh_base import SSHBase
|
||||||
from postgresql import PostgreSQLOperations
|
from .postgresql import PostgreSQLOperations
|
||||||
from c1_cluster import C1ClusterOperations
|
from .c1_cluster import C1ClusterOperations
|
||||||
|
|
||||||
|
|
||||||
class ssh(SSHBase, PostgreSQLOperations, C1ClusterOperations):
|
class ssh(SSHBase, PostgreSQLOperations, C1ClusterOperations):
|
||||||
Reference in New Issue
Block a user