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
|
||||
|
@@ -57,13 +57,14 @@ namespace dropshell {
|
||||
// |-- backups
|
||||
// |-- services
|
||||
// |-- service name
|
||||
// |-- config <-- this is passed as argument to all scripts
|
||||
// |-- config
|
||||
// |-- service.env
|
||||
// |-- template
|
||||
// |-- (script files)
|
||||
// |-- example
|
||||
// |-- service.env
|
||||
// |-- (other config files for specific server&service)
|
||||
|
||||
namespace remotefile {
|
||||
std::string service_env(const std::string &server_name, const std::string &service_name);
|
||||
} // namespace remotefile
|
||||
|
Reference in New Issue
Block a user