Skip to content

Commit 9f20a22

Browse files
committed
Prefer print function
1 parent fad5f90 commit 9f20a22

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ruby_executable/src/bin/ruby_check.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use fun_run::CommandWithName;
44
use indoc::formatdoc;
55
use libherokubuildpack::inventory::artifact::Arch;
66
use shared::{BaseImage, RubyDownloadVersion, output_tar_path, source_dir};
7-
use std::{error::Error, path::PathBuf, process::Command};
7+
use std::{error::Error, path::PathBuf, process::Command, time::Instant};
88

99
static INNER_OUTPUT: &str = "/tmp/output";
1010

@@ -26,6 +26,7 @@ fn ruby_check(args: &RubyArgs) -> Result<(), Box<dyn Error>> {
2626
version,
2727
base_image,
2828
} = args;
29+
let start = Instant::now();
2930
let log = Print::new(std::io::stderr()).h1(format!(
3031
"Checking Ruby version ({version} linux/{arch}) for {base_image}",
3132
));
@@ -63,7 +64,8 @@ fn ruby_check(args: &RubyArgs) -> Result<(), Box<dyn Error>> {
6364
print::bullet("Versions");
6465
let output = print::sub_stream_cmd(cmd)?;
6566

66-
eprintln!();
67+
print::all_done(&Some(start));
68+
print::plain("");
6769

6870
// Print results to STDOUT for github summary
6971
println!("## Ruby {version} linux/{arch} for {base_image}");

0 commit comments

Comments
 (0)