debian-mirror-gitlab/lib/tasks/gitlab/import_export.rake

14 lines
400 B
Ruby
Raw Normal View History

2016-08-24 12:49:21 +05:30
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-08-17 22:00:37 +05:30
puts YAML.load_file(Gitlab::ImportExport.config_file)['project_tree'].to_yaml(SortKeys: true)
2016-08-24 12:49:21 +05:30
end
end
end