def __init__(self, config_repo_local, config_repo_remote, is_quiet, is_verbose, active_modules=None): self.config_repo_local = config_repo_local self.host_os = OS.from_string(sys.platform) self.cache_directory = CacheDirectory( package_manager=OS.get_package_manager(self.host_os)) set_logging(is_quiet, is_verbose) if config_repo_remote is None: self.config_repo_remote = load_config_repo_remote( config_repo_local) if self.is_cloned else None else: self.config_repo_remote = config_repo_remote module_information = load_active_modules( config_repo_local, active_modules, self.host_os, self.cache_directory) if self.is_cloned else None self.modules = None if module_information is None else module_information[ 0] self.is_sudo_used = None if module_information is None else module_information[ 1] self.sudo_password = None
def __init__(self, name, shell, packages, applications, cache_directory, default_dock, settings, dock_manager): self.name = OS.from_string(name) self.shell = shell self.package_manager = OS.get_package_manager(self.name) self.packages = packages self.applications = applications self.cache_directory = cache_directory self.default_dock = default_dock self.settings = settings self.dock_manager = dock_manager self.sudo_password = None