//! Bundler — the Ruby dependency manager.

use std::path::Path;
use std::process::Command;

/// Detected via `Gemfile`.
pub(crate) fn detect(dir: &Path) -> bool {
    dir.join("Gemfile").exists()
}

/// `bundle install`
pub(crate) fn install_cmd() -> Command {
    let mut c = super::program::command("bundle");
    c.arg("install");
    c
}
