Skip to content

Commit

Permalink
Merge pull request #29 from preact/bugfix/custom-user-installs
Browse files Browse the repository at this point in the history
fixes the rvm install when rvm1_user is specified
  • Loading branch information
nickjj committed Jan 29, 2015
2 parents e22e665 + 861c0e6 commit fdf8507
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/rvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,22 @@
command: 'gpg --keyserver {{ rvm1_gpg_key_server }} --recv-keys {{ rvm1_gpg_keys }}'
changed_when: False
when: rvm1_gpg_keys != ''
sudo_user: '{{ rvm1_user }}'

- name: Install rvm
command: >
{{ rvm1_temp_download_path }}/rvm-installer.sh {{ rvm1_rvm_version }}
--path {{ rvm1_install_path }} {{ rvm1_install_flags }}
when: not rvm_binary.stat.exists
sudo_user: '{{ rvm1_user }}'

- name: Update rvm
shell: '{{ rvm1_rvm }} get {{ rvm1_rvm_version }} && {{ rvm1_rvm }} reload'
changed_when: False
when: rvm_binary.stat.exists and rvm1_rvm_check_for_updates
sudo_user: '{{ rvm1_user }}'

- name: Configure rvm
command: '{{ rvm1_rvm }} autolibs {{ rvm1_autolib_mode }}'
when: not rvm_binary.stat.exists
sudo_user: '{{ rvm1_user }}'

0 comments on commit fdf8507

Please sign in to comment.