Commit 52668210 authored by Micaël Bergeron's avatar Micaël Bergeron

move pseudonymizer files to the correct ee/ location

parent 90e0d25e
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
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment