Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
c5e4ed33
Commit
c5e4ed33
authored
Oct 08, 2020
by
Kassio Borges
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix lib/gitlab/import_export/* kwargs warnings
parent
907c8c51
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
12 additions
and
12 deletions
+12
-12
lib/gitlab/import_export/attribute_cleaner.rb
lib/gitlab/import_export/attribute_cleaner.rb
+2
-2
lib/gitlab/import_export/base/relation_factory.rb
lib/gitlab/import_export/base/relation_factory.rb
+2
-2
lib/gitlab/import_export/file_importer.rb
lib/gitlab/import_export/file_importer.rb
+2
-2
lib/gitlab/import_export/project/tree_saver.rb
lib/gitlab/import_export/project/tree_saver.rb
+1
-1
lib/gitlab/import_export/saver.rb
lib/gitlab/import_export/saver.rb
+2
-2
lib/gitlab/import_export/uploads_manager.rb
lib/gitlab/import_export/uploads_manager.rb
+1
-1
lib/gitlab/import_export/version_checker.rb
lib/gitlab/import_export/version_checker.rb
+2
-2
No files found.
lib/gitlab/import_export/attribute_cleaner.rb
View file @
c5e4ed33
...
...
@@ -20,8 +20,8 @@ module Gitlab
/\Aremote_\w+_(url|urls|request_header)\Z/
# carrierwave automatically creates these attribute methods for uploads
).
freeze
def
self
.
clean
(
*
args
)
new
(
*
args
).
clean
def
self
.
clean
(
*
args
,
**
kwargs
)
new
(
*
args
,
**
kwargs
).
clean
end
def
initialize
(
relation_hash
:,
relation_class
:,
excluded_keys:
[])
...
...
lib/gitlab/import_export/base/relation_factory.rb
View file @
c5e4ed33
...
...
@@ -31,8 +31,8 @@ module Gitlab
TOKEN_RESET_MODELS
=
%i[Project Namespace Group Ci::Trigger Ci::Build Ci::Runner ProjectHook]
.
freeze
def
self
.
create
(
*
args
)
new
(
*
args
).
create
def
self
.
create
(
*
args
,
**
kwargs
)
new
(
*
args
,
**
kwargs
).
create
end
def
self
.
relation_class
(
relation_name
)
...
...
lib/gitlab/import_export/file_importer.rb
View file @
c5e4ed33
...
...
@@ -10,8 +10,8 @@ module Gitlab
MAX_RETRIES
=
8
IGNORED_FILENAMES
=
%w(. ..)
.
freeze
def
self
.
import
(
*
args
)
new
(
*
args
).
import
def
self
.
import
(
*
args
,
**
kwargs
)
new
(
*
args
,
**
kwargs
).
import
end
def
initialize
(
importable
:,
archive_file
:,
shared
:)
...
...
lib/gitlab/import_export/project/tree_saver.rb
View file @
c5e4ed33
...
...
@@ -36,7 +36,7 @@ module Gitlab
end
def
exportable
@project
.
present
(
exportable_params
)
@project
.
present
(
**
exportable_params
)
end
def
exportable_params
...
...
lib/gitlab/import_export/saver.rb
View file @
c5e4ed33
...
...
@@ -5,8 +5,8 @@ module Gitlab
class
Saver
include
Gitlab
::
ImportExport
::
CommandLineUtil
def
self
.
save
(
*
args
)
new
(
*
args
).
save
def
self
.
save
(
*
args
,
**
kwargs
)
new
(
*
args
,
**
kwargs
).
save
end
def
initialize
(
exportable
:,
shared
:)
...
...
lib/gitlab/import_export/uploads_manager.rb
View file @
c5e4ed33
...
...
@@ -40,7 +40,7 @@ module Gitlab
def
add_upload
(
upload
)
uploader_context
=
FileUploader
.
extract_dynamic_path
(
upload
).
named_captures
.
symbolize_keys
UploadService
.
new
(
@project
,
File
.
open
(
upload
,
'r'
),
FileUploader
,
uploader_context
).
execute
.
to_h
UploadService
.
new
(
@project
,
File
.
open
(
upload
,
'r'
),
FileUploader
,
**
uploader_context
).
execute
.
to_h
end
def
copy_project_uploads
...
...
lib/gitlab/import_export/version_checker.rb
View file @
c5e4ed33
...
...
@@ -3,8 +3,8 @@
module
Gitlab
module
ImportExport
class
VersionChecker
def
self
.
check!
(
*
args
)
new
(
*
args
).
check!
def
self
.
check!
(
*
args
,
**
kwargs
)
new
(
*
args
,
**
kwargs
).
check!
end
def
initialize
(
shared
:)
...
...
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