Add helper to run compose
This commit is contained in:
parent
120fea2a62
commit
790d163de0
1 changed files with 6 additions and 0 deletions
|
@ -25,4 +25,10 @@ impl ComposeProject {
|
||||||
.args(arguments)
|
.args(arguments)
|
||||||
.output()
|
.output()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fn docker_compose(&self, arguments: &[&str])-> Result<Output> {
|
||||||
|
let mut compose_arguments = vec!["-f", self.compose_file.to_str().expect("Path parse failed")];
|
||||||
|
compose_arguments.extend_from_slice(arguments);
|
||||||
|
self.execute_in_dir("docker-compose", compose_arguments.as_slice())
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue