138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
|
# File 'lib/openc3/models/timeline_model.rb', line 138
def deploy
topics = ["#{@scope}__#{PRIMARY_KEY}"]
microservice = MicroserviceModel.new(
name: @name,
folder_name: nil,
cmd: ['ruby', 'timeline_microservice.rb', @name],
work_dir: '/openc3-enterprise/lib/openc3-enterprise/microservices',
options: [],
topics: topics,
target_names: [],
plugin: nil,
shard: @shard,
scope: @scope
)
microservice.create
notify(kind: 'created')
end
|