Compiles
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user