Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
dc13af90
Commit
dc13af90
authored
Jan 28, 2013
by
Lennart Rosam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rake task - Update method name
parent
d9027df5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/tasks/gitlab/bulk_add_permission.rake
lib/tasks/gitlab/bulk_add_permission.rake
+3
-3
No files found.
lib/tasks/gitlab/bulk_add_permission.rake
View file @
dc13af90
...
...
@@ -7,9 +7,9 @@ namespace :gitlab do
Project
.
find_each
do
|
project
|
puts
"Importing
#{
user_ids
.
size
}
users into
#{
project
.
code
}
"
UsersProject
.
bulk_import
(
project
,
user_ids
,
UsersProject
::
DEVELOPER
)
UsersProject
.
add_users_into_projects
(
project
,
user_ids
,
UsersProject
::
DEVELOPER
)
puts
"Importing
#{
admin_ids
.
size
}
admins into
#{
project
.
code
}
"
UsersProject
.
bulk_import
(
project
,
admin_ids
,
UsersProject
::
MASTER
)
UsersProject
.
add_users_into_projects
(
project
,
admin_ids
,
UsersProject
::
MASTER
)
end
end
...
...
@@ -18,7 +18,7 @@ namespace :gitlab do
user
=
User
.
find_by_email
args
.
email
project_ids
=
Project
.
pluck
(
:id
)
UsersProject
.
user_bulk_import
(
user
,
project_ids
,
UsersProject
::
DEVELOPER
)
UsersProject
.
add_users_into_projects
(
user
,
project_ids
,
UsersProject
::
DEVELOPER
)
end
end
end
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment