diff --git a/doc/raketasks/features.md b/doc/raketasks/features.md index 2a66b1caca72d3b6eba749b3adcff3fb3635ce56..9dc6a4ef5eb7d4414c30a2de84c3ba4b3406e150 100644 --- a/doc/raketasks/features.md +++ b/doc/raketasks/features.md @@ -1,6 +1,6 @@ ### Enable usernames and namespaces for user projects -This command will enable the namespace feature introduced in v4.0. It will move every project in its namespace folder. +This command will enable the namespaces feature introduced in v4.0. It will move every project in its namespace folder. Note: @@ -13,7 +13,7 @@ Old path: `git@example.org:myrepo.git` New path: `git@example.org:username/myrepo.git` or `git@example.org:groupname/myrepo.git` ``` -bundle exec rake gitlab:activate_namespaces +bundle exec rake gitlab:enable_namespaces ``` diff --git a/lib/tasks/gitlab/activate_namespaces.rake b/lib/tasks/gitlab/enable_namespaces.rake similarity index 97% rename from lib/tasks/gitlab/activate_namespaces.rake rename to lib/tasks/gitlab/enable_namespaces.rake index 70ec88d0b3f614b0283f797a7711698f343a245d..1be9ba6469d29860c9a3f62df7002d25136fa0e1 100644 --- a/lib/tasks/gitlab/activate_namespaces.rake +++ b/lib/tasks/gitlab/enable_namespaces.rake @@ -1,6 +1,6 @@ namespace :gitlab do desc "GITLAB | Enable usernames and namespaces for user projects" - task activate_namespaces: :environment do + task enable_namespaces: :environment do print "\nUsernames for users:".yellow User.find_each(batch_size: 500) do |user|