Add --no-ruby flag (#106)
This commit is contained in:
committed by
Roey Darwish Dror
parent
71d31fcdc5
commit
ab5b02c6c8
@@ -76,6 +76,10 @@ pub struct Opt {
|
|||||||
#[structopt(long = "no-vim")]
|
#[structopt(long = "no-vim")]
|
||||||
pub no_vim: bool,
|
pub no_vim: bool,
|
||||||
|
|
||||||
|
/// Don't upgrade ruby gems
|
||||||
|
#[structopt(long = "no-gem")]
|
||||||
|
pub no_gem: bool,
|
||||||
|
|
||||||
/// Print what would be done
|
/// Print what would be done
|
||||||
#[structopt(short = "n", long = "dry-run")]
|
#[structopt(short = "n", long = "dry-run")]
|
||||||
pub dry_run: bool,
|
pub dry_run: bool,
|
||||||
|
|||||||
@@ -204,7 +204,10 @@ fn run() -> Result<(), Error> {
|
|||||||
target_os = "dragonfly"
|
target_os = "dragonfly"
|
||||||
)))]
|
)))]
|
||||||
report.push_result(execute(|| generic::run_apm(run_type), opt.no_retry)?);
|
report.push_result(execute(|| generic::run_apm(run_type), opt.no_retry)?);
|
||||||
|
|
||||||
|
if !opt.no_gem {
|
||||||
report.push_result(execute(|| generic::run_gem(&base_dirs, run_type), opt.no_retry)?);
|
report.push_result(execute(|| generic::run_gem(&base_dirs, run_type), opt.no_retry)?);
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "linux")]
|
#[cfg(target_os = "linux")]
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user