-
Notifications
You must be signed in to change notification settings - Fork 66
Fixed #650: make sure server-version gets defaulted properly in all cases #769
Fixed #650: make sure server-version gets defaulted properly in all cases #769
Conversation
d365aa7
to
31c64c2
Compare
There was a merge conflict, but I resolved that with git rebase.. |
To test this, run |
deploy/lib/server_config.rb
Outdated
end | ||
if server_version == 0 | ||
puts "Defaulting to 8.." | ||
server_version = 8 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we default to 9?
deploy/lib/server_config.rb
Outdated
@@ -318,15 +318,19 @@ def self.initcpf | |||
def self.prompt_server_version | |||
if @@no_prompt | |||
puts 'Required option --server-version=[version] not specified with valid value, | |||
but --no-prompt parameter prevents prompting for password. Assuming 8.' | |||
but --no-prompt parameter prevents prompting for password.' | |||
server_version = 0 | |||
else | |||
puts 'Required option --server-version=[version] not specified with valid value. | |||
|
|||
What is the version number of the target MarkLogic server? [5, 6, 7, 8, or 9]' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change this to only say 7, 8, or 9? Perhaps throw an error or warning if something lower than 7 is used?
Makes sense, I'll look into it tomorrow.. |
31c64c2
to
e6f72cc
Compare
What do you think of this? The warning is printed each time a command with an env is used if I am not mistaken. Should we add an option to silence the warning? The one for old Ruby is also always shown I think.. |
Looks good to me! |
Fixes #650