diff options
author | James Lopez <james@jameslopez.es> | 2016-06-17 12:23:41 +0200 |
---|---|---|
committer | Achilleas Pipinellis <axilleas@axilleas.me> | 2016-06-21 19:23:21 +0200 |
commit | 3a7eb38a7889ee067c470ca8f6d964218844287e (patch) | |
tree | 0cf3f2e3b93e603118d793267079b6e46c4ffe48 /lib/tasks | |
parent | 6715402e2092f0def4b39ce5988138c0e10229ee (diff) | |
download | gitlab-ce-3a7eb38a7889ee067c470ca8f6d964218844287e.tar.gz |
added nice to have - rake task and some changes to docs
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/gitlab/import_export.rake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/tasks/gitlab/import_export.rake b/lib/tasks/gitlab/import_export.rake new file mode 100644 index 00000000000..c2c6031db67 --- /dev/null +++ b/lib/tasks/gitlab/import_export.rake @@ -0,0 +1,13 @@ +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 + puts YAML.load_file(Gitlab::ImportExport.config_file)['project_tree'].to_yaml(:SortKeys => true) + end + end +end |