@@ -323,15 +323,19 @@ def self.initcpf
323323 def self . prompt_server_version
324324 if @@no_prompt
325325 puts 'Required option --server-version=[version] not specified with valid value,
326- but --no-prompt parameter prevents prompting for password. Assuming 8.'
326+ but --no-prompt parameter prevents prompting for password.'
327+ server_version = 0
327328 else
328329 puts 'Required option --server-version=[version] not specified with valid value.
329330
330331 What is the version number of the target MarkLogic server? [5, 6, 7, 8, or 9]'
331332 server_version = STDIN . gets . chomp . to_i
332- server_version = 8 if server_version == 0
333- server_version
334333 end
334+ if server_version == 0
335+ puts "Defaulting to 8.."
336+ server_version = 8
337+ end
338+ server_version
335339 end
336340
337341 def self . index
@@ -1261,10 +1265,10 @@ def install
12611265 if File . exist? ( @properties [ "ml.schemas.dir" ] )
12621266 deploy_schemas
12631267 end
1264- if @properties [ "ml.triggers-db" ] then
1268+ if @properties [ "ml.triggers-db" ]
12651269 deploy_triggers
12661270 end
1267- if @properties [ "ml.triggers-db" ] and @properties [ "ml.data.dir" ] and File . exist? ( ServerConfig . expand_path ( @properties [ "ml.pipeline-config-file" ] ) ) then
1271+ if @properties [ "ml.triggers-db" ] and @properties [ "ml.data.dir" ] and File . exist? ( ServerConfig . expand_path ( @properties [ "ml.pipeline-config-file" ] ) )
12681272 deploy_cpf
12691273 end
12701274 deploy_content
@@ -3046,7 +3050,7 @@ def ServerConfig.properties(prop_file_location = @@path)
30463050 properties . merge! ( ServerConfig . load_properties ( properties_file , "ml." ) )
30473051
30483052 #Look for optional shared_config, if it is set grab the properties from path relative to the root of the roxy project
3049- if properties [ 'ml.shared_config' ] then
3053+ if properties [ 'ml.shared_config' ]
30503054 shared_properties_file = ServerConfig . expand_path ( "#{ @@path } /../#{ properties [ 'ml.shared_config' ] } " )
30513055 properties . merge! ( ServerConfig . load_properties ( shared_properties_file ) )
30523056 end
0 commit comments