Not working yet.
This commit is contained in:
@ -41,32 +41,31 @@ std::string get_local_config_path()
|
||||
std::string get_local_config_templates_path()
|
||||
{
|
||||
std::string config_path = get_local_config_path();
|
||||
if (config_path.empty()) {
|
||||
if (config_path.empty())
|
||||
return std::string();
|
||||
}
|
||||
return config_path + "/templates";
|
||||
}
|
||||
|
||||
std::string get_local_config_servers_path()
|
||||
{
|
||||
std::string config_path = get_local_config_path();
|
||||
if (config_path.empty()) {
|
||||
if (config_path.empty())
|
||||
return std::string();
|
||||
}
|
||||
return config_path + "/servers";
|
||||
}
|
||||
|
||||
std::string get_local_config_backups_path()
|
||||
{
|
||||
std::string config_path = get_local_config_path();
|
||||
if (config_path.empty()) {
|
||||
if (config_path.empty())
|
||||
return std::string();
|
||||
}
|
||||
return config_path + "/backups";
|
||||
}
|
||||
|
||||
std::string get_local_server_path(const std::string &server_name)
|
||||
{
|
||||
if (server_name.empty())
|
||||
return std::string();
|
||||
std::string config_path = get_local_config_path();
|
||||
if (config_path.empty())
|
||||
return std::string();
|
||||
@ -75,6 +74,8 @@ std::string get_local_server_path(const std::string &server_name)
|
||||
|
||||
std::string get_local_server_env_path(const std::string &server_name)
|
||||
{
|
||||
if (server_name.empty())
|
||||
return std::string();
|
||||
std::string serverpath = get_local_server_path(server_name);
|
||||
if (serverpath.empty())
|
||||
return std::string();
|
||||
@ -83,6 +84,9 @@ std::string get_local_server_env_path(const std::string &server_name)
|
||||
|
||||
std::string get_local_service_path(const std::string &server_name, const std::string &service_name)
|
||||
{
|
||||
if (server_name.empty() || service_name.empty())
|
||||
return std::string();
|
||||
|
||||
std::string serverpath = get_local_server_path(server_name);
|
||||
if (serverpath.empty())
|
||||
return std::string();
|
||||
@ -91,6 +95,8 @@ std::string get_local_service_path(const std::string &server_name, const std::st
|
||||
|
||||
std::string get_local_service_env_path(const std::string &server_name, const std::string &service_name)
|
||||
{
|
||||
if (server_name.empty() || service_name.empty())
|
||||
return std::string();
|
||||
std::string servicepath = get_local_service_path(server_name, service_name);
|
||||
if (servicepath.empty())
|
||||
return std::string();
|
||||
@ -111,6 +117,8 @@ std::string get_local_service_env_path(const std::string &server_name, const std
|
||||
|
||||
std::string get_remote_DROPSHELL_path(const std::string &server_name)
|
||||
{
|
||||
if (server_name.empty())
|
||||
return std::string();
|
||||
server_env env(server_name);
|
||||
if (!env.is_valid())
|
||||
return std::string();
|
||||
@ -119,6 +127,8 @@ std::string get_local_service_env_path(const std::string &server_name, const std
|
||||
|
||||
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 dropshell_path = get_remote_DROPSHELL_path(server_name);
|
||||
if (dropshell_path.empty())
|
||||
return std::string();
|
||||
@ -127,6 +137,8 @@ std::string get_local_service_env_path(const std::string &server_name, const std
|
||||
|
||||
std::string get_remote_service_config_path(const std::string &server_name, const std::string &service_name)
|
||||
{
|
||||
if (server_name.empty() || service_name.empty())
|
||||
return std::string();
|
||||
std::string service_path = get_remote_service_path(server_name, service_name);
|
||||
if (service_path.empty())
|
||||
return std::string();
|
||||
@ -135,6 +147,8 @@ std::string get_local_service_env_path(const std::string &server_name, const std
|
||||
|
||||
std::string get_remote_service_template_path(const std::string &server_name, const std::string &service_name)
|
||||
{
|
||||
if (server_name.empty() || service_name.empty())
|
||||
return std::string();
|
||||
std::string service_path = get_remote_service_path(server_name, service_name);
|
||||
if (service_path.empty())
|
||||
return std::string();
|
||||
@ -143,6 +157,8 @@ std::string get_local_service_env_path(const std::string &server_name, const std
|
||||
|
||||
std::string get_remote_service_backups_path(const std::string &server_name, const std::string &service_name)
|
||||
{
|
||||
if (server_name.empty() || service_name.empty())
|
||||
return std::string();
|
||||
std::string service_path = get_remote_service_path(server_name, service_name);
|
||||
if (service_path.empty())
|
||||
return std::string();
|
||||
@ -151,6 +167,8 @@ std::string get_local_service_env_path(const std::string &server_name, const std
|
||||
|
||||
std::string get_remote_service_env_file(const std::string &server_name, const std::string &service_name)
|
||||
{
|
||||
if (server_name.empty() || service_name.empty())
|
||||
return std::string();
|
||||
std::string service_path = get_remote_service_config_path(server_name, service_name);
|
||||
if (service_path.empty())
|
||||
return std::string();
|
||||
|
Reference in New Issue
Block a user