This commit is contained in:
Your Name
2025-04-28 21:12:02 +12:00
parent 1d6986cda0
commit 76efe77e85
10 changed files with 140 additions and 141 deletions

View File

@ -105,6 +105,16 @@ namespace localpath {
// |-- (script files)
// |-- backups
namespace remotefile {
std::string service_env(const std::string &server_name, const std::string &service_name)
{
return remotepath::service_config(server_name, service_name) + "/service.env";
}
}
namespace remotepath {
std::string DROPSHELL_DIR(const std::string &server_name)
{
@ -147,6 +157,11 @@ namespace remotepath {
return (service_path.empty() ? "" : (service_path + "/service.env"));
}
} // namespace remotepath
// ------------------------------------------------------------------------------------------
// Utility functions
std::string get_parent(std::string path)
{
if (path.empty())
@ -154,4 +169,4 @@ std::string get_parent(std::string path)
return fs::path(path).parent_path().string();
}
} // namespace dropshell
} // namespace dropshell