Skip to content

Commit

Permalink
Merge pull request #40 from udondan/master
Browse files Browse the repository at this point in the history
Install bundler if it's missing
  • Loading branch information
nickjj committed Apr 22, 2015
2 parents aefe5b0 + 3c3cb4f commit 9862ed2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tasks/rubies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
when: detect_default_ruby_version.stdout == '' or
rvm1_default_ruby_version not in detect_default_ruby_version.stdout

- name: Install bundler if not installed
shell: 'gem list | if ! grep "^bundler " ; then {{ rvm1_install_path }}/wrappers/{{ item }}/gem install bundler ; fi'
args:
creates: '{{ rvm1_install_path }}/wrappers/{{ item }}/bundler'
with_items: rvm1_rubies
register: bundler_install
changed_when: '"Successfully installed bundler" in bundler_install.stdout'

- name: Symlink ruby related binaries on the system path
file:
state: 'link'
Expand Down

0 comments on commit 9862ed2

Please sign in to comment.