Le vendredi 14 février 2014 08:10:04 UTC+1, [email protected] a écrit : > > > http://git.aliens-lyon.fr/help/raketasks > > According to "User Management": > > > Add user as a developer to all projects > > bundle exec rake gitlab:import:user_to_projects[[email protected]] > > > Hope this works for you! >
Thanks. But it seems that this command is not for creating users, but for import users into all the projects. https://github.com/gitlabhq/gitlabhq/blob/master/doc/raketasks/user_management.md My tests : - [email protected] doesn't exsist in gitlab : bundle exec rake gitlab:import:user_to_projects[[email protected]] RAILS_ENV=production --trace ** Invoke gitlab:import:user_to_projects (first_time) ** Invoke environment (first_time) ** Execute environment ** Execute gitlab:import:user_to_projects rake aborted! undefined method `email' for nil:NilClass /home/git/gitlab/lib/tasks/gitlab/bulk_add_permission.rake:20:in `block (3 levels) in <top (required)>' /usr/local/lib/ruby/2.1.0/rake/task.rb:236:in `call' /usr/local/lib/ruby/2.1.0/rake/task.rb:236:in `block in execute' /usr/local/lib/ruby/2.1.0/rake/task.rb:231:in `each' /usr/local/lib/ruby/2.1.0/rake/task.rb:231:in `execute' /usr/local/lib/ruby/2.1.0/rake/task.rb:175:in `block in invoke_with_call_chain' /usr/local/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize' /usr/local/lib/ruby/2.1.0/rake/task.rb:168:in `invoke_with_call_chain' /usr/local/lib/ruby/2.1.0/rake/task.rb:161:in `invoke' /usr/local/lib/ruby/2.1.0/rake/application.rb:149:in `invoke_task' /usr/local/lib/ruby/2.1.0/rake/application.rb:106:in `block (2 levels) in top_level' /usr/local/lib/ruby/2.1.0/rake/application.rb:106:in `each' /usr/local/lib/ruby/2.1.0/rake/application.rb:106:in `block in top_level' /usr/local/lib/ruby/2.1.0/rake/application.rb:115:in `run_with_threads' /usr/local/lib/ruby/2.1.0/rake/application.rb:100:in `top_level' /usr/local/lib/ruby/2.1.0/rake/application.rb:78:in `block in run' /usr/local/lib/ruby/2.1.0/rake/application.rb:165:in `standard_exception_handling' /usr/local/lib/ruby/2.1.0/rake/application.rb:75:in `run' /usr/local/bin/rake:33:in `<main>' Tasks: TOP => gitlab:import:user_to_projects - [email protected] exist in gitlab : # bundle exec rake gitlab:import:user_to_projects[[email protected]] RAILS_ENV=production Importing [email protected] users into 0 projects -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
