Make Vagrant boxes into seperated steps

This commit is contained in:
Roey Darwish Dror
2020-06-16 21:02:50 +03:00
parent 4d8dc69e7f
commit f0fcb0f4cd
2 changed files with 81 additions and 64 deletions

View File

@@ -390,7 +390,13 @@ fn run() -> Result<()> {
}
if config.should_run(Step::Vagrant) {
runner.execute("Vagrant", || vagrant::topgrade_vagrant_boxes(&ctx))?;
if let Ok(boxes) = vagrant::collect_boxes(&ctx) {
for vagrant_box in boxes {
runner.execute(format!("Vagrant ({})", vagrant_box.smart_name()), || {
vagrant::topgrade_vagrant_box(&ctx, &vagrant_box)
})?;
}
}
}
if !runner.report().data().is_empty() {