Configuring bundler to use multiple cpus/cores

This will speed up tasks like bundle install, letting it use multiple
procs/cores instead of being single threaded.

Change-Id: I7ec7ab4d09176d3b6c0280b9b64f76af432c40c9
This commit is contained in:
galstrom21 2014-04-26 13:56:40 -05:00
parent 13590a6239
commit 18de70ab58
2 changed files with 2 additions and 0 deletions

View File

@ -48,6 +48,7 @@
- shell: |
#!/bin/bash -xe
mkdir -p .cookbooks .bundle
ruby1.9.1 /usr/bin/bundle config --global jobs $(nproc)
ruby1.9.1 /usr/bin/bundle install --path=.bundle
# Validates cookbooks
ruby1.9.1 /usr/bin/bundle exec berks install --path=.cookbooks

View File

@ -116,6 +116,7 @@
builders:
- shell: |
mkdir -p .bundle
ruby1.9.1 /usr/bin/bundle config --global jobs $(nproc)
ruby1.9.1 /usr/bin/bundle install --path=.bundle
- builder: