Compiles.
This commit is contained in:
@ -60,9 +60,6 @@ class service_runner {
|
||||
static std::map<std::string, ServiceStatus> get_all_services_status(std::string server_name);
|
||||
static std::string HealthStatus2String(HealthStatus status);
|
||||
|
||||
// ensure the service related dropshell files (template and config) are up to date on the remote server.
|
||||
bool ensure_service_dropshell_files_up_to_date();
|
||||
|
||||
private:
|
||||
// install the service over ssh, using the credentials from server.env (via server_env.hpp), by:
|
||||
// 1. check if the server_name exists, and the service_name refers to a valid template
|
||||
@ -111,33 +108,6 @@ void interactive_ssh(const std::string & server_name, const std::string & comman
|
||||
void edit_server(const std::string & server_name);
|
||||
bool edit_file(const std::string & file_path);
|
||||
|
||||
// check if the service template and config are up to date on the remote server.
|
||||
class service_versions {
|
||||
public:
|
||||
service_versions(const std::string & server_name, const std::string & service_name);
|
||||
|
||||
bool remote_up_to_date() { return remote_template_is_up_to_date() && remote_config_is_up_to_date(); }
|
||||
|
||||
bool remote_template_is_up_to_date() { return get_version_remote_service_template() == calculate_version_local_service_template(); }
|
||||
bool remote_config_is_up_to_date() { return get_version_remote_config() == calculate_version_local_config(); }
|
||||
|
||||
uint64_t calculate_version_local_service_template();
|
||||
uint64_t calculate_version_local_config();
|
||||
|
||||
void update_stored_remote_versions();
|
||||
uint64_t get_version_remote_config();
|
||||
uint64_t get_version_remote_service_template();
|
||||
|
||||
private:
|
||||
uint64_t calculate_version_remote_service_template();
|
||||
uint64_t calculate_version_remote_config();
|
||||
|
||||
private:
|
||||
std::string m_server_name;
|
||||
std::string m_service_name;
|
||||
};
|
||||
|
||||
|
||||
} // namespace dropshell
|
||||
|
||||
#endif // SERVICE_RUNNER_HPP
|
||||
|
Reference in New Issue
Block a user