1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Rename prerelease to pre_release.

This commit is contained in:
Michael DeHaan 2014-03-28 13:08:46 -04:00
parent e1a1ac1e76
commit 5f14b6e637

View file

@ -67,9 +67,9 @@ options:
description: description:
- Version of the gem to be installed/removed. - Version of the gem to be installed/removed.
required: false required: false
prerelease: pre_release:
description: description:
- Allow installation of prerelease versions of the gem. - Allow installation of pre-release versions of the gem.
required: false required: false
default: "no" default: "no"
version_added: "1.6" version_added: "1.6"
@ -180,7 +180,7 @@ def install(module):
cmd.append('--user-install') cmd.append('--user-install')
else: else:
cmd.append('--no-user-install') cmd.append('--no-user-install')
if module.params['prerelease']: if module.params['pre_release']:
cmd.append('--pre') cmd.append('--pre')
cmd.append('--no-rdoc') cmd.append('--no-rdoc')
cmd.append('--no-ri') cmd.append('--no-ri')
@ -198,7 +198,7 @@ def main():
repository = dict(required=False, aliases=['source'], type='str'), repository = dict(required=False, aliases=['source'], type='str'),
state = dict(required=False, default='present', choices=['present','absent','latest'], type='str'), state = dict(required=False, default='present', choices=['present','absent','latest'], type='str'),
user_install = dict(required=False, default=True, type='bool'), user_install = dict(required=False, default=True, type='bool'),
prerelease = dict(required=False, default=False, type='bool'), pre_release = dict(required=False, default=False, type='bool'),
version = dict(required=False, type='str'), version = dict(required=False, type='str'),
), ),
supports_check_mode = True, supports_check_mode = True,