WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 9862ed2

Browse files
committed
Merge pull request #40 from udondan/master
Install bundler if it's missing
2 parents aefe5b0 + 3c3cb4f commit 9862ed2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tasks/rubies.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@
2424
when: detect_default_ruby_version.stdout == '' or
2525
rvm1_default_ruby_version not in detect_default_ruby_version.stdout
2626

27+
- name: Install bundler if not installed
28+
shell: 'gem list | if ! grep "^bundler " ; then {{ rvm1_install_path }}/wrappers/{{ item }}/gem install bundler ; fi'
29+
args:
30+
creates: '{{ rvm1_install_path }}/wrappers/{{ item }}/bundler'
31+
with_items: rvm1_rubies
32+
register: bundler_install
33+
changed_when: '"Successfully installed bundler" in bundler_install.stdout'
34+
2735
- name: Symlink ruby related binaries on the system path
2836
file:
2937
state: 'link'

0 commit comments

Comments
 (0)