runner-run 0.7.0

Universal project task runner
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! 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 = Command::new("bundle");
    c.arg("install");
    c
}