MCPcopy Create free account
hub / github.com/Qovery/engine / report_file_path

Method report_file_path

lib-engine/src/cluster_analysis/task.rs:261–276  ·  view source on GitHub ↗
(&self, extension: &str)

Source from the content-addressed store, hash-verified

259 }
260
261 fn report_file_path(&self, extension: &str) -> Result<std::path::PathBuf, Box<EngineError>> {
262 let dir = workspace_directory(&self.workspace_root_dir, self.request.id.as_str(), "cluster-analysis").map_err(
263 |error| {
264 Box::new(EngineError::new_cannot_get_workspace_directory(
265 self.get_event_details(ClusterAnalysisStep::Error),
266 CommandError::new(
267 "Cannot create cluster analysis workspace directory".to_string(),
268 Some(error.to_string()),
269 None,
270 ),
271 ))
272 },
273 )?;
274
275 Ok(dir.join(format!("report.{extension}")))
276 }
277
278 fn report_success(&self, report: String) {
279 for line in report.lines() {

Callers 1

run_krrMethod · 0.80

Calls 3

workspace_directoryFunction · 0.85
as_strMethod · 0.45
get_event_detailsMethod · 0.45

Tested by

no test coverage detected