Correctly handle option user_install in gem module

This commit is contained in:
Jocelyn Jaubert 2013-08-24 22:48:58 +02:00
parent 4a3b762afe
commit f958a5ac81

View file

@ -157,7 +157,9 @@ def install(module):
else:
if major and major < 2:
cmd.append('--include-dependencies')
if not module.params['user_install']:
if module.params['user_install']:
cmd.append('--user-install')
else:
cmd.append('--no-user-install')
cmd.append('--no-rdoc')
cmd.append('--no-ri')