Method: OpenC3::PluginModel#restore

Defined in:
lib/openc3/models/plugin_model.rb

#restoreObject

Reinstall



305
306
307
308
309
310
# File 'lib/openc3/models/plugin_model.rb', line 305

def restore
  plugin_hash = self.as_json(:allow_nan => true)
  plugin_hash['name'] = plugin_hash['name'].split("__")[0]
  OpenC3::PluginModel.install_phase2(plugin_hash, scope: @scope)
  @destroyed = false
end