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
52668210
Commit
52668210
authored
Jun 22, 2018
by
Micaël Bergeron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move pseudonymizer files to the correct ee/ location
parent
90e0d25e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
26 additions
and
23 deletions
+26
-23
ee/lib/pseudonymizer/dumper.rb
ee/lib/pseudonymizer/dumper.rb
+0
-0
ee/lib/pseudonymizer/filter.rb
ee/lib/pseudonymizer/filter.rb
+0
-0
ee/lib/pseudonymizer/options.rb
ee/lib/pseudonymizer/options.rb
+0
-0
ee/lib/pseudonymizer/pager.rb
ee/lib/pseudonymizer/pager.rb
+0
-0
ee/lib/pseudonymizer/uploader.rb
ee/lib/pseudonymizer/uploader.rb
+0
-0
ee/lib/tasks/gitlab/db.rake
ee/lib/tasks/gitlab/db.rake
+26
-0
ee/spec/lib/pseudonymizer/dumper_spec.rb
ee/spec/lib/pseudonymizer/dumper_spec.rb
+0
-0
ee/spec/lib/pseudonymizer/pager_spec.rb
ee/spec/lib/pseudonymizer/pager_spec.rb
+0
-0
ee/spec/lib/pseudonymizer/uploader_spec.rb
ee/spec/lib/pseudonymizer/uploader_spec.rb
+0
-0
lib/tasks/gitlab/db.rake
lib/tasks/gitlab/db.rake
+0
-23
No files found.
lib/pseudonymizer/dumper.rb
→
ee/
lib/pseudonymizer/dumper.rb
View file @
52668210
File moved
lib/pseudonymizer/filter.rb
→
ee/
lib/pseudonymizer/filter.rb
View file @
52668210
File moved
lib/pseudonymizer/options.rb
→
ee/
lib/pseudonymizer/options.rb
View file @
52668210
File moved
lib/pseudonymizer/pager.rb
→
ee/
lib/pseudonymizer/pager.rb
View file @
52668210
File moved
lib/pseudonymizer/uploader.rb
→
ee/
lib/pseudonymizer/uploader.rb
View file @
52668210
File moved
ee/lib/tasks/gitlab/db.rake
0 → 100644
View file @
52668210
namespace
:gitlab
do
namespace
:db
do
desc
'Output pseudonymity dump of selected tables'
task
pseudonymizer: :environment
do
abort
"The pseudonymizer is not available with this license."
unless
License
.
feature_available?
(
:pseudonymizer
)
abort
"The pseudonymizer is disabled."
unless
Gitlab
::
CurrentSettings
.
pseudonymizer_enabled?
options
=
Pseudonymizer
::
Options
.
new
(
config:
YAML
.
load_file
(
Gitlab
.
config
.
pseudonymizer
.
manifest
),
output_dir:
ENV
[
'PSEUDONYMIZER_OUTPUT_DIR'
]
)
dumper
=
Pseudonymizer
::
Dumper
.
new
(
options
)
uploader
=
Pseudonymizer
::
Uploader
.
new
(
options
)
abort
"There is an error in the pseudonymizer object store configuration."
unless
uploader
.
available?
begin
dumper
.
tables_to_csv
uploader
.
upload
ensure
uploader
.
cleanup
end
end
end
end
spec/lib/pseudonymizer/dumper_spec.rb
→
ee/
spec/lib/pseudonymizer/dumper_spec.rb
View file @
52668210
File moved
spec/lib/pseudonymizer/pager_spec.rb
→
ee/
spec/lib/pseudonymizer/pager_spec.rb
View file @
52668210
File moved
spec/lib/pseudonymizer/uploader_spec.rb
→
ee/
spec/lib/pseudonymizer/uploader_spec.rb
View file @
52668210
File moved
lib/tasks/gitlab/db.rake
View file @
52668210
...
...
@@ -69,28 +69,5 @@ namespace :gitlab do
Gitlab
::
DowntimeCheck
.
new
.
check_and_print
(
migrations
)
end
desc
'Output pseudonymity dump of selected tables'
task
pseudonymizer: :environment
do
abort
"The pseudonymizer is not available with this license."
unless
License
.
feature_available?
(
:pseudonymizer
)
abort
"The pseudonymizer is disabled."
unless
Gitlab
::
CurrentSettings
.
pseudonymizer_enabled?
options
=
Pseudonymizer
::
Options
.
new
(
config:
YAML
.
load_file
(
Gitlab
.
config
.
pseudonymizer
.
manifest
),
output_dir:
ENV
[
'PSEUDONYMIZER_OUTPUT_DIR'
]
)
dumper
=
Pseudonymizer
::
Dumper
.
new
(
options
)
uploader
=
Pseudonymizer
::
Uploader
.
new
(
options
)
abort
"There is an error in the pseudonymizer object store configuration."
unless
uploader
.
available?
begin
dumper
.
tables_to_csv
uploader
.
upload
ensure
uploader
.
cleanup
end
end
end
end
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