BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
efb7da68
Unverified
Commit
efb7da68
authored
Jun 06, 2016
by
Connor Shea
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix missed colorize methods.
parent
740a6ecb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
001_admin.rb
db/fixtures/production/001_admin.rb
+6
-6
setup.rake
lib/tasks/gitlab/setup.rake
+1
-1
No files found.
db/fixtures/production/001_admin.rb
View file @
efb7da68
...
@@ -16,21 +16,21 @@ user = User.new(user_args)
...
@@ -16,21 +16,21 @@ user = User.new(user_args)
user
.
skip_confirmation!
user
.
skip_confirmation!
if
user
.
save
if
user
.
save
puts
"Administrator account created:"
.
green
puts
"Administrator account created:"
.
color
(
:green
)
puts
puts
puts
"login: root"
.
green
puts
"login: root"
.
color
(
:green
)
if
user_args
.
key?
(
:password
)
if
user_args
.
key?
(
:password
)
puts
"password:
#{
user_args
[
:password
]
}
"
.
green
puts
"password:
#{
user_args
[
:password
]
}
"
.
color
(
:green
)
else
else
puts
"password: You'll be prompted to create one on your first visit."
.
green
puts
"password: You'll be prompted to create one on your first visit."
.
color
(
:green
)
end
end
puts
puts
else
else
puts
"Could not create the default administrator account:"
.
red
puts
"Could not create the default administrator account:"
.
color
(
:red
)
puts
puts
user
.
errors
.
full_messages
.
map
do
|
message
|
user
.
errors
.
full_messages
.
map
do
|
message
|
puts
"-->
#{
message
}
"
.
red
puts
"-->
#{
message
}
"
.
color
(
:red
)
end
end
puts
puts
...
...
lib/tasks/gitlab/setup.rake
View file @
efb7da68
...
@@ -19,7 +19,7 @@ namespace :gitlab do
...
@@ -19,7 +19,7 @@ namespace :gitlab do
Rake
::
Task
[
"setup_postgresql"
].
invoke
Rake
::
Task
[
"setup_postgresql"
].
invoke
Rake
::
Task
[
"db:seed_fu"
].
invoke
Rake
::
Task
[
"db:seed_fu"
].
invoke
rescue
Gitlab
::
TaskAbortedByUserError
rescue
Gitlab
::
TaskAbortedByUserError
puts
"Quitting..."
.
red
puts
"Quitting..."
.
color
(
:red
)
exit
1
exit
1
end
end
end
end
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