Clean package structure ahead of tests
This commit is contained in:
parent
43114d8c1f
commit
4843413883
10 changed files with 16 additions and 10 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -0,0 +1,3 @@
|
|||
.venv
|
||||
*.pyc
|
||||
__pycache__/
|
|
@ -1,4 +1,4 @@
|
|||
FROM debian
|
||||
|
||||
COPY machine_admin /machine_admin
|
||||
COPY machine_setup.py /
|
||||
COPY src/machine_admin /machine_admin
|
||||
COPY src/machine_setup.py /
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
import logging
|
||||
from util import run_op
|
||||
|
||||
from .util import run_op
|
||||
|
||||
class UfwInterface:
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
from firewall import Firewall
|
||||
from user import User, UserManager
|
||||
from ssh_config import SshConfig
|
||||
from package_manager import PackageManager
|
||||
from .firewall import Firewall
|
||||
from .user import User, UserManager
|
||||
from .ssh_config import SshConfig
|
||||
from .package_manager import PackageManager
|
||||
|
||||
class Machine:
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
import logging
|
||||
from util import run_op
|
||||
|
||||
from .util import run_op
|
||||
|
||||
class AptInterface:
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
from pathlib import Path
|
||||
import logging
|
||||
from util import run_op
|
||||
|
||||
from .util import run_op
|
||||
|
||||
class SshConfig:
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
import logging
|
||||
from util import run_op
|
||||
from .util import run_op
|
||||
|
||||
class User:
|
||||
def __init__(self, name, has_sudo=False):
|
Loading…
Reference in a new issue