Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
grid5000
reference-repository
Commits
a0317aec
Commit
a0317aec
authored
Nov 17, 2018
by
Lucas Nussbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[dev] login using credentials for the API
parent
3127df64
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
lib/refrepo/gen/wiki/wiki_generator.rb
lib/refrepo/gen/wiki/wiki_generator.rb
+2
-3
No files found.
lib/refrepo/gen/wiki/wiki_generator.rb
View file @
a0317aec
...
...
@@ -15,9 +15,8 @@ class WikiGenerator
def
login
(
options
)
tries
=
3
begin
if
(
options
[
:user
]
&&
options
[
:pwd
])
@mw_client
.
log_in
(
options
[
:user
],
options
[
:pwd
])
end
conf
=
RefRepo
::
Utils
.
get_api_config
@mw_client
.
log_in
(
conf
[
'username'
],
conf
[
'password'
])
rescue
tries
-=
1
if
tries
>
0
...
...
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