Example #1
0
 limitations under the License.
"""

__version__ = '0.6'

import os
import argparse
import tempfile
from pathlib import Path
from typing import List

from deployman.logger import init_logger
from deployman.config import ConfigReader, ComponentFactory, Component
from deployman.ui import UserInterface

logger = init_logger('WARNING')


# main class
class DeploymentManager:
    def __init__(self, args, selected_targets: List[Component],
                 components: List[Component]):
        self.args = args
        self.selected_targets = selected_targets
        self.components = components
        self.dependencies = []
        self.mandatory_components = []

    def get_dependencies(self):
        dependencies_names = []
        logger.debug("Updating dependencies...")
Example #2
0
 limitations under the License.
"""

__version__ = "0.6"

import os
import argparse
import tempfile
from pathlib import Path
from typing import List

from deployman.logger import init_logger
from deployman.config import ConfigReader, ComponentFactory, Component
from deployman.ui import UserInterface

logger = init_logger("WARNING")


# main class
class DeploymentManager:
    def __init__(self, args, selected_targets: List[Component], components: List[Component]):
        self.args = args
        self.selected_targets = selected_targets
        self.components = components
        self.dependencies = []
        self.mandatory_components = []

    def get_dependencies(self):
        dependencies_names = []
        logger.debug("Updating dependencies...")
        for target in self.selected_targets: