325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
|
# File 'lib/openc3/models/scope_model.rb', line 325
def deploy(gem_path, variables)
seed_database()
if ENTERPRISE
model = TriggerGroupModel.get(name: 'DEFAULT', scope: @scope)
unless model
model = TriggerGroupModel.new(name: 'DEFAULT', shard: @shard, scope: @scope)
model.create()
model.deploy()
end
end
model = TargetModel.new(name: "UNKNOWN", shard: @shard, scope: @scope)
model.create
@parent = "#{@scope}__SCOPEMULTI__#{@scope}"
deploy_openc3_log_messages_microservice(gem_path, variables, @parent)
deploy_unknown_commandlog_microservice(gem_path, variables, @parent)
deploy_unknown_packetlog_microservice(gem_path, variables, @parent)
if @scope == 'DEFAULT'
deploy_periodic_microservice(gem_path, variables, @parent)
end
deploy_scopecleanup_microservice(gem_path, variables, @parent)
if ENTERPRISE
deploy_critical_cmd_microservice(gem_path, variables, @parent)
end
deploy_scopemulti_microservice(gem_path, variables)
end
|