Accept 'rvm1_rubies' as a single string version

If 'rvm1_rubies' is a string with a single Ruby version (a common mistake), the role currently installs it correctly but subsequently fails to symlink the default wrappers; with this change it will instead correctly use the given version.
This commit is contained in:
Zeno Grandi
2016-10-03 17:03:40 +02:00
committed by Zeno Grandi
parent 506855ba43
commit 11a01534a6

View File

@@ -2,7 +2,7 @@
rvm1_temp_download_path: '/tmp' rvm1_temp_download_path: '/tmp'
rvm1_default_ruby_version: '{{ rvm1_rubies | last if rvm1_rubies and rvm1_rubies is iterable else "" }}' rvm1_default_ruby_version: '{{ rvm1_rubies | last if rvm1_rubies and rvm1_rubies is iterable else rvm1_rubies }}'
rvm1_rvm: '{{ rvm1_install_path }}/bin/rvm' rvm1_rvm: '{{ rvm1_install_path }}/bin/rvm'