.
This commit is contained in:
@ -134,14 +134,24 @@ std::string get_local_service_env_path(const std::string &server_name, const std
|
||||
return env.get_DROPSHELL_DIR();
|
||||
}
|
||||
|
||||
std::string get_remote_service_path(const std::string &server_name, const std::string &service_name)
|
||||
std::string get_remote_services_path(const std::string &server_name)
|
||||
{
|
||||
if (server_name.empty() || service_name.empty())
|
||||
if (server_name.empty())
|
||||
return std::string();
|
||||
std::string dropshell_path = get_remote_DROPSHELL_path(server_name);
|
||||
if (dropshell_path.empty())
|
||||
return std::string();
|
||||
return (fs::path(dropshell_path) / service_name).string();
|
||||
return (fs::path(dropshell_path) / "services").string();
|
||||
}
|
||||
|
||||
std::string get_remote_service_path(const std::string &server_name, const std::string &service_name)
|
||||
{
|
||||
if (server_name.empty() || service_name.empty())
|
||||
return std::string();
|
||||
std::string services_path = get_remote_services_path(server_name);
|
||||
if (services_path.empty())
|
||||
return std::string();
|
||||
return (fs::path(services_path) / service_name).string();
|
||||
}
|
||||
|
||||
std::string get_remote_service_config_path(const std::string &server_name, const std::string &service_name)
|
||||
|
Reference in New Issue
Block a user