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

Function create_workspace_archive

lib-engine/src/fs.rs:137–151  ·  view source on GitHub ↗
(working_root_dir: &str, execution_id: &str)

Source from the content-addressed store, hash-verified

135}
136
137pub fn create_workspace_archive(working_root_dir: &str, execution_id: &str) -> Result<PathBuf, Error> {
138 info!("archive workspace directory in progress");
139
140 match archive_workspace_directory(working_root_dir, execution_id) {
141 Err(err) => {
142 error!("archive workspace directory error: {:?}", err);
143 Err(err)
144 }
145 Ok(file) => {
146 info!("workspace directory is archived");
147 cleanup_workspace_directory(working_root_dir, execution_id)?;
148 Ok(file)
149 }
150 }
151}
152
153pub fn create_yaml_backup_file<P>(
154 working_root_dir: P,

Callers 3

runMethod · 0.85
runMethod · 0.85
runMethod · 0.85

Calls 2

Tested by

no test coverage detected