Correctly handle option user_install in gem module
This commit is contained in:
parent
f54b72faea
commit
8b5d2aeef9
1 changed files with 3 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue