Skip to content
This repository was archived by the owner on Nov 9, 2022. It is now read-only.

Commit e6f72cc

Browse files
committed
#650: default to 9, warn about untested and EOL
1 parent 1245e13 commit e6f72cc

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

deploy/lib/server_config.rb

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ def initialize(options)
8888

8989
@server_version = @properties["ml.server-version"].to_i
9090

91+
if (@server_version < 7)
92+
logger.warn "WARN: This version of Roxy is not tested against MarkLogic #{@server_version}."
93+
if (@server_version > 4)
94+
logger.info " Consider downgrading to v1.7.0 using `./ml upgrade --branch=v1.7.0`."
95+
end
96+
logger.warn "Note: MarkLogic #{@server_version} is EOL."
97+
end
98+
9199
if @properties["ml.bootstrap-port"]
92100
@bootstrap_port = @properties["ml.bootstrap-port"]
93101
else
@@ -328,12 +336,12 @@ def self.prompt_server_version
328336
else
329337
puts 'Required option --server-version=[version] not specified with valid value.
330338
331-
What is the version number of the target MarkLogic server? [5, 6, 7, 8, or 9]'
339+
What is the version number of the target MarkLogic server? [7, 8, or 9]'
332340
server_version = STDIN.gets.chomp.to_i
333341
end
334342
if server_version == 0
335-
puts "Defaulting to 8.."
336-
server_version = 8
343+
puts "Defaulting to 9.."
344+
server_version = 9
337345
end
338346
server_version
339347
end

0 commit comments

Comments
 (0)