Skip to content

Commit

Permalink
Implement commented out "help" output
Browse files Browse the repository at this point in the history
  • Loading branch information
schneems committed Oct 30, 2023
1 parent ae799db commit d645702
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions buildpacks/ruby/src/steps/rake_assets_install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use crate::RubyBuildpackError;
use commons::cache::{mib, AppCacheCollection, CacheConfig, KeepPath};
use commons::fun_run::{self, CmdError, CommandWithName};
use commons::output::{
fmt,
fmt::{self, HELP},
section_log::{log_step, log_step_stream, SectionLogger},
};
use libcnb::build::BuildContext;
Expand All @@ -28,16 +28,14 @@ pub(crate) fn rake_assets_install(
"Skipping {rake_assets_precompile} {}",
fmt::details(format!("task not found via {rake_detect_cmd}"))
));

// section.help("Enable compiling assets by ensuring that task is present when running the detect command locally");
log_step(format!("{HELP} Enable compiling assets by ensuring {rake_assets_precompile} is present when running the detect command locally"));
}
AssetCases::PrecompileOnly => {
log_step(format!(
"Compiling assets without cache {}",
fmt::details(format!("Clean task not found via {rake_detect_cmd}"))
));

// section.help(format!("Enable caching by ensuring {rake_assets_clean} is present when running the detect command locally"));
log_step(format!("{HELP} Enable caching by ensuring {rake_assets_clean} is present when running the detect command locally"));

run_rake_assets_precompile(env)
.map_err(RubyBuildpackError::RakeAssetsPrecompileFailed)?;
Expand Down

0 comments on commit d645702

Please sign in to comment.