Function brane_ctl::unpack::compose

source ·
pub fn compose(
    kind: ResolvableNodeKind,
    fix_dirs: bool,
    path: impl AsRef<Path>,
    node_config_path: impl AsRef<Path>,
) -> Result<(), Error>
Expand description

Unpacks the target Docker Compose file that we embedded in this executable.

§Arguments

  • kind: The NodeKind that determines the specific file to unpack to.
  • fix_dirs: Whether to fix missing directories.
  • path: The path to write the new file to.
  • node_config_path: The path to the node.yml file.

§Errors

This function errors if we failed to read the node.yml file, or failed to write the builtin one.