From b1347d68b3c0831d6498da5b9bc66fa8af431e0f Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Tue, 24 Feb 2015 23:01:39 -0600 Subject: [PATCH] Add Parallel Bundle Install as ruby til. --- README.md | 1 + ruby/parallel-bundle-install.md | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 ruby/parallel-bundle-install.md diff --git a/README.md b/README.md index 5bc10f1..9027b9c 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ I shamelessly stole this idea from ## ruby - [Limit Split](ruby/limit-split.md) +- [Parallel Bundle Install](ruby/parallel-bundle-install.md) - [Summing Collections](ruby/summing-collections.md) ## vim diff --git a/ruby/parallel-bundle-install.md b/ruby/parallel-bundle-install.md new file mode 100644 index 0000000..1de6196 --- /dev/null +++ b/ruby/parallel-bundle-install.md @@ -0,0 +1,13 @@ +# Parallel Bundle Install + +The `bundle install` command can take quite a while sometimes. This is +especially true for when you are setting up a fresh dev environment for an +existing project. Fortunately, Bundler provides a flag for parallelizing +the gem installs and Bundler is smart enough that it knows how to resolve +the dependencies so that this is possible in the first place. Just tell +Bundler how many concurrent jobs you want it to install with (4 is a good +number) and let it do the rest of the work. + +```bash +$ bundle install --jobs 4 +```