Skip to content

Commit

Permalink
Use standardized output
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Sep 25, 2024
1 parent 6573f53 commit d429dba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildpacks/ruby/src/layers/ruby_install_layer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ pub(crate) fn handle(
) -> libcnb::Result<(Print<SubBullet<Stdout>>, LayerEnv), RubyBuildpackError> {
let layer_ref = cached_layer_write_metadata(layer_name!("ruby"), context, metadata)?;
match &layer_ref.state {
LayerState::Restored { cause: _ } => {
bullet = bullet.sub_bullet("Using cached Ruby version");
LayerState::Restored { cause } => {
bullet = bullet.sub_bullet(cause);
}
LayerState::Empty { cause } => {
match cause {
EmptyLayerCause::NewlyCreated => {}
EmptyLayerCause::InvalidMetadataAction { cause }
| EmptyLayerCause::RestoredLayerAction { cause } => {
bullet = bullet.sub_bullet(format!("Clearing cache {cause}"));
bullet = bullet.sub_bullet(cause);
}
}
let timer = bullet.start_timer("Installing");
Expand Down

0 comments on commit d429dba

Please sign in to comment.