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
6e44c727
Commit
6e44c727
authored
Mar 01, 2013
by
Johan Wirén
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed urlparsing of gemsource. Not needed
parent
637210be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
8 deletions
+1
-8
library/gem
+1
-8
No files found.
library/gem
View file @
6e44c727
...
@@ -62,7 +62,6 @@ examples:
...
@@ -62,7 +62,6 @@ examples:
author: Johan Wiren
author: Johan Wiren
'''
'''
import
re
import
re
from
urlparse
import
urlparse
def
getinstalledversions
(
module
,
remote
=
False
):
def
getinstalledversions
(
module
,
remote
=
False
):
cmd
=
[
module
.
get_bin_path
(
'gem'
,
True
)
]
cmd
=
[
module
.
get_bin_path
(
'gem'
,
True
)
]
...
@@ -149,13 +148,7 @@ def main():
...
@@ -149,13 +148,7 @@ def main():
if
module
.
params
[
'gemsource'
]
and
module
.
params
[
'state'
]
==
'latest'
:
if
module
.
params
[
'gemsource'
]
and
module
.
params
[
'state'
]
==
'latest'
:
module
.
fail_json
(
msg
=
"Cannot maintain state=latest when installing from local source"
)
module
.
fail_json
(
msg
=
"Cannot maintain state=latest when installing from local source"
)
if
module
.
params
[
'gemsource'
]:
if
module
.
params
[
'gemsource'
]
is
not
'null'
:
url
=
urlparse
(
module
.
params
[
'gemsource'
])
if
url
.
scheme
in
[
''
,
'file'
]
:
module
.
params
[
'gemsource'
]
=
url
.
path
else
:
module
.
fail_json
(
msg
=
"Installation using url scheme
%
s is not supported."
%
url
.
scheme
)
else
:
module
.
params
[
'gemsource'
]
=
module
.
params
[
'name'
]
module
.
params
[
'gemsource'
]
=
module
.
params
[
'name'
]
changed
=
False
changed
=
False
...
...
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