def __init__(self, host, command): self._host = host self._command = command self._job_id = 0 self._COMMAND_SUCCESS_OUTPUT = "SUCCESS" config_helper = Config_helper(host=host) self._ssh_user = config_helper.get_ssh_user() self._private_key_file = config_helper.get_private_key_file()
def __init__(self, host, dir_to_verify, logger): self._host = host self._verify_directory = dir_to_verify self._log_helper = logger config_helper = Config_helper(host=self._host) self._ssh_user = config_helper.get_ssh_user() self._backup_directory = os.path.join(config_helper.get_backup_dir(), self._host)