Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
32b3c59b
Commit
32b3c59b
authored
Jul 21, 2013
by
Michael DeHaan
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3400 from diko4096/patch-1
Update gem
parents
fc70fbca
8745de11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
library/packaging/gem
+8
-0
No files found.
library/packaging/gem
View file @
32b3c59b
...
@@ -51,6 +51,11 @@ options:
...
@@ -51,6 +51,11 @@ options:
- The repository from which the gem will be installed
- The repository from which the gem will be installed
required: false
required: false
aliases: [source]
aliases: [source]
user_install:
description:
- Install gem in user's local gems cache or for all users
required: false
default: "yes"
version:
version:
description:
description:
- Version of the gem to be installed/removed.
- Version of the gem to be installed/removed.
...
@@ -151,6 +156,8 @@ def install(module):
...
@@ -151,6 +156,8 @@ def install(module):
else
:
else
:
if
major
and
major
<
2
:
if
major
and
major
<
2
:
cmd
.
append
(
'--include-dependencies'
)
cmd
.
append
(
'--include-dependencies'
)
if
not
module
.
params
[
'user_install'
]:
cmd
.
append
(
'--no-user-install'
)
cmd
.
append
(
'--no-rdoc'
)
cmd
.
append
(
'--no-rdoc'
)
cmd
.
append
(
'--no-ri'
)
cmd
.
append
(
'--no-ri'
)
cmd
.
append
(
module
.
params
[
'gem_source'
])
cmd
.
append
(
module
.
params
[
'gem_source'
])
...
@@ -165,6 +172,7 @@ def main():
...
@@ -165,6 +172,7 @@ def main():
name
=
dict
(
required
=
True
,
type
=
'str'
),
name
=
dict
(
required
=
True
,
type
=
'str'
),
repository
=
dict
(
required
=
False
,
aliases
=
[
'source'
],
type
=
'str'
),
repository
=
dict
(
required
=
False
,
aliases
=
[
'source'
],
type
=
'str'
),
state
=
dict
(
required
=
False
,
choices
=
[
'present'
,
'absent'
,
'latest'
],
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'
),
version
=
dict
(
required
=
False
,
type
=
'str'
),
),
),
supports_check_mode
=
True
,
supports_check_mode
=
True
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment