Restore autocompletion working!
This commit is contained in:
@ -557,6 +557,23 @@ void edit_file(const std::string &file_path, const std::string & aftertext)
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
bool service_runner::restore(std::string backup_file)
|
||||
{
|
||||
std::string command = "restore";
|
||||
std::string script_path = mRemote_service_template_path + "/" + command + ".sh";
|
||||
if (!template_command_exists(m_service_info.template_name, command)) {
|
||||
std::cout << "No restore script for " << m_service_info.template_name << std::endl;
|
||||
return true; // nothing to restore.
|
||||
}
|
||||
|
||||
/// TOODOOOOOO!!!!!!
|
||||
std::cout << "Restore not implemented yet" << std::endl;
|
||||
return true;
|
||||
|
||||
// std::string run_cmd = construct_standard_command_run_cmd("restore");
|
||||
// return execute_ssh_command(run_cmd, "Restore script failed");
|
||||
}
|
||||
|
||||
void service_runner::interactive_ssh_service()
|
||||
{
|
||||
std::set<std::string> used_commands = get_used_commands(m_server_name, m_service_info.service_name);
|
||||
|
Reference in New Issue
Block a user