2016-06-17 06:23:41 -04:00
|
|
|
namespace :gitlab do
|
|
|
|
namespace :import_export do
|
|
|
|
desc "GitLab | Show Import/Export version"
|
|
|
|
task version: :environment do
|
|
|
|
puts "Import/Export v#{Gitlab::ImportExport.version}"
|
|
|
|
end
|
|
|
|
|
|
|
|
desc "GitLab | Display exported DB structure"
|
|
|
|
task data: :environment do
|
2017-02-22 13:18:40 -05:00
|
|
|
puts YAML.load_file(Gitlab::ImportExport.config_file)['project_tree'].to_yaml(SortKeys: true)
|
2016-06-17 06:23:41 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|