Add --no-ruby flag (#106)

This commit is contained in:
Edvin Malinovskis
2019-01-13 14:10:23 +00:00
committed by Roey Darwish Dror
parent 71d31fcdc5
commit ab5b02c6c8
2 changed files with 8 additions and 1 deletions

View File

@@ -76,6 +76,10 @@ pub struct Opt {
#[structopt(long = "no-vim")]
pub no_vim: bool,
/// Don't upgrade ruby gems
#[structopt(long = "no-gem")]
pub no_gem: bool,
/// Print what would be done
#[structopt(short = "n", long = "dry-run")]
pub dry_run: bool,

View File

@@ -204,7 +204,10 @@ fn run() -> Result<(), Error> {
target_os = "dragonfly"
)))]
report.push_result(execute(|| generic::run_apm(run_type), opt.no_retry)?);
report.push_result(execute(|| generic::run_gem(&base_dirs, run_type), opt.no_retry)?);
if !opt.no_gem {
report.push_result(execute(|| generic::run_gem(&base_dirs, run_type), opt.no_retry)?);
}
#[cfg(target_os = "linux")]
{