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

Function copy_non_template_files

lib-engine/src/template.rs:68–81  ·  view source on GitHub ↗
(from: S, to: P)

Source from the content-addressed store, hash-verified

66}
67
68pub fn copy_non_template_files<S, P>(from: S, to: P) -> Result<(), CommandError>
69where
70 S: AsRef<Path>,
71 P: AsRef<Path>,
72{
73 match crate::fs::copy_files(from.as_ref(), to.as_ref(), true) {
74 Err(err) => Err(CommandError::new(
75 "Error copying template files.".to_string(),
76 Some(err.to_string()),
77 None,
78 )),
79 Ok(x) => Ok(x),
80 }
81}
82
83pub fn generate_j2_template_files<P>(root_dir: P, context: &Context) -> Result<Vec<RenderedTemplate>, TeraError>
84where

Calls 2

copy_filesFunction · 0.85
as_refMethod · 0.80

Tested by

no test coverage detected