Skip to content

Commit

Permalink
Fixed marklogic-community#330: added version 8 to picklist in favor o…
Browse files Browse the repository at this point in the history
…ver 4
  • Loading branch information
grtjn committed Jan 16, 2015
1 parent c1166fc commit 88e8865
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deploy/lib/server_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def self.init
server_version = find_arg(['--server-version'])

# Check for required --server-version argument value
if (!server_version.present? || server_version == '--server-version' || !(%w(4 5 6 7).include? server_version))
if (!server_version.present? || server_version == '--server-version' || !(%w(4 5 6 7 8).include? server_version))
server_version = prompt_server_version
end

Expand Down Expand Up @@ -266,9 +266,9 @@ def self.initcpf
def self.prompt_server_version
puts 'Required option --server-version=[version] not specified with valid value.
What is the version number of the target MarkLogic server? [4, 5, 6, or 7]'
What is the version number of the target MarkLogic server? [5, 6, 7, or 8]'
server_version = $stdin.gets.chomp.to_i
server_version = 6 if server_version == 0
server_version = 7 if server_version == 0
server_version
end

Expand Down Expand Up @@ -389,7 +389,7 @@ def execute_query(query, properties = {})
r = execute_query_4 query, properties
elsif @server_version == 5 || @server_version == 6
r = execute_query_5 query, properties
else
else # 7 or 8
r = execute_query_7 query, properties
end

Expand Down

0 comments on commit 88e8865

Please sign in to comment.