File tree 1 file changed +5
-6
lines changed
buildpacks/ruby/src/layers
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 7
7
use crate :: RubyBuildpack ;
8
8
use crate :: RubyBuildpackError ;
9
9
use bullet_stream:: state:: SubBullet ;
10
- use bullet_stream:: { style , Print } ;
10
+ use bullet_stream:: Print ;
11
11
use cache_diff:: CacheDiff ;
12
12
use commons:: gemfile_lock:: ResolvedBundlerVersion ;
13
13
use commons:: layer:: diff_migrate:: DiffMigrateLayer ;
@@ -80,7 +80,7 @@ pub(crate) struct MetadataV1 {
80
80
}
81
81
82
82
fn download_bundler (
83
- bullet : Print < SubBullet < Stdout > > ,
83
+ mut bullet : Print < SubBullet < Stdout > > ,
84
84
env : & Env ,
85
85
metadata : & Metadata ,
86
86
gem_path : & Path ,
@@ -103,13 +103,12 @@ fn download_bundler(
103
103
"--env-shebang" , // Start the `bundle` executable with `#! /usr/bin/env ruby`
104
104
] ) ;
105
105
106
- let timer = bullet. start_timer ( format ! ( "Running {}" , style:: command( short_name) ) ) ;
107
-
108
- cmd. named_output ( )
106
+ bullet
107
+ . time_cmd ( & mut cmd. named ( short_name) )
109
108
. map_err ( |error| fun_run:: map_which_problem ( error, cmd. mut_cmd ( ) , env. get ( "PATH" ) . cloned ( ) ) )
110
109
. map_err ( RubyBuildpackError :: GemInstallBundlerCommandError ) ?;
111
110
112
- Ok ( timer . done ( ) )
111
+ Ok ( bullet )
113
112
}
114
113
115
114
#[ cfg( test) ]
You can’t perform that action at this time.
0 commit comments