Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gem #3400

Merged
merged 1 commit into from
Jul 21, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions library/packaging/gem
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ options:
- The repository from which the gem will be installed
required: false
aliases: [source]
user_install:
description:
- Install gem in user's local gems cache or for all users
required: false
default: "yes"
version:
description:
- Version of the gem to be installed/removed.
Expand Down Expand Up @@ -151,6 +156,8 @@ def install(module):
else:
if major and major < 2:
cmd.append('--include-dependencies')
if not module.params['user_install']:
cmd.append('--no-user-install')
cmd.append('--no-rdoc')
cmd.append('--no-ri')
cmd.append(module.params['gem_source'])
Expand All @@ -165,6 +172,7 @@ def main():
name = dict(required=True, type='str'),
repository = dict(required=False, aliases=['source'], type='str'),
state = dict(required=False, choices=['present','absent','latest'], type='str'),
user_install = dict(required=False, default=True, type='bool'),
version = dict(required=False, type='str'),
),
supports_check_mode = True,
Expand Down