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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
98b460df
Commit
98b460df
authored
Feb 11, 2017
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WIP Geo rake check
parent
7d8dd901
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
lib/tasks/gitlab/check.rake
lib/tasks/gitlab/check.rake
+34
-0
No files found.
lib/tasks/gitlab/check.rake
View file @
98b460df
...
@@ -849,6 +849,36 @@ namespace :gitlab do
...
@@ -849,6 +849,36 @@ namespace :gitlab do
end
end
end
end
namespace
:geo
do
desc
'GitLab | Check Geo configuration and dependencies'
task
check: :environment
do
warn_user_is_not_gitlab
start_checking
'Geo'
check_geo_enabled
finished_checking
'Geo'
end
# Checks
########################
def
check_geo_enabled
print
'GitLab Geo is available ... '
if
Gitlab
::
Geo
.
license_allows?
puts
'yes'
.
color
(
:green
)
else
puts
'no'
.
color
(
:red
)
try_fixing_it
(
'Upload a new license that includes GitLab Geo feature'
)
for_more_information
(
see_geo_features_page
)
end
end
end
# Helper methods
# Helper methods
##########################
##########################
...
@@ -879,6 +909,10 @@ namespace :gitlab do
...
@@ -879,6 +909,10 @@ namespace :gitlab do
"doc/install/installation.md in section
\"
#{
section
}
\"
"
"doc/install/installation.md in section
\"
#{
section
}
\"
"
end
end
def
see_geo_features_page
'https://about.gitlab.com/features/gitlab-geo/'
end
def
sudo_gitlab
(
command
)
def
sudo_gitlab
(
command
)
"sudo -u
#{
gitlab_user
}
-H
#{
command
}
"
"sudo -u
#{
gitlab_user
}
-H
#{
command
}
"
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