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
9ac12732
Commit
9ac12732
authored
Jan 16, 2018
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Add rake task to print Geo node status]: address review comments
parent
cf07c0b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
lib/tasks/geo.rake
lib/tasks/geo.rake
+4
-6
No files found.
lib/tasks/geo.rake
View file @
9ac12732
require
'action_view/helpers'
include
ActionView
::
Helpers
::
DateHelper
include
ActionView
::
Helpers
::
NumberHelper
task
spec:
[
'geo:db:test:prepare'
]
namespace
:geo
do
include
ActionView
::
Helpers
::
DateHelper
include
ActionView
::
Helpers
::
NumberHelper
GEO_LICENSE_ERROR_TEXT
=
'GitLab Geo is not supported with this license. Please contact sales@gitlab.com.'
.
freeze
namespace
:db
do
|
ns
|
...
...
@@ -208,10 +209,7 @@ namespace :geo do
desc
'Print Geo node status'
task
status: :environment
do
unless
Gitlab
::
Geo
.
license_allows?
puts
'You need a different license to enable Geo replication'
.
color
(
:red
)
exit
end
abort
GEO_LICENSE_ERROR_TEXT
unless
Gitlab
::
Geo
.
license_allows?
COLUMN_WIDTH
=
35
current_node_status
=
GeoNodeStatus
.
current_node_status
...
...
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