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
71266ad2
Commit
71266ad2
authored
Dec 10, 2012
by
Riyad Preukschas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split and renamed check tasks
parent
0236b3d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
5 deletions
+26
-5
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+26
-5
No files found.
lib/tasks/gitlab/check.rake
View file @
71266ad2
namespace
:gitlab
do
namespace
:gitlab
do
desc
"GITLAB | Check the configuration of GitLab and its environment"
task
check:
%w{gitlab:env:check
gitlab:app:check
gitlab:gitolite:check
gitlab:resque:check}
namespace
:app
do
namespace
:app
do
desc
"GITLAB | Check GitLab installation status"
desc
"GITLAB | Check the configuration of the GitLab Rails app"
task
:status
=>
:environment
do
task
check: :environment
do
puts
"
\n
Starting diagnostics"
.
yellow
git_base_path
=
Gitlab
.
config
.
git_base_path
print
"config/database.yml............"
print
"config/database.yml............"
if
File
.
exists?
(
Rails
.
root
.
join
"config"
,
"database.yml"
)
if
File
.
exists?
(
Rails
.
root
.
join
"config"
,
"database.yml"
)
...
@@ -20,6 +24,19 @@ namespace :gitlab do
...
@@ -20,6 +24,19 @@ namespace :gitlab do
puts
"missing"
.
red
puts
"missing"
.
red
return
return
end
end
end
end
namespace
:env
do
desc
"GITLAB | Check the configuration of the environment"
task
check: :environment
do
end
end
namespace
:gitolite
do
desc
"GITLAB | Check the configuration of Gitolite"
task
check: :environment
do
git_base_path
=
Gitlab
.
config
.
git_base_path
print
"
#{
git_base_path
}
............"
print
"
#{
git_base_path
}
............"
if
File
.
exists?
(
git_base_path
)
if
File
.
exists?
(
git_base_path
)
...
@@ -106,8 +123,12 @@ namespace :gitlab do
...
@@ -106,8 +123,12 @@ namespace :gitlab do
end
end
end
end
end
end
end
end
puts
"
\n
Finished"
.
blue
namespace
:resque
do
desc
"GITLAB | Check the configuration of Resque"
task
check: :environment
do
end
end
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