Class: OpenC3::ToolConfigModel
- Defined in:
- lib/openc3/models/tool_config_model.rb
Class Method Summary collapse
- .delete_config(tool, name, scope: $openc3_scope) ⇒ Object
- .list_configs(tool, scope: $openc3_scope) ⇒ Object
- .load_config(tool, name, scope: $openc3_scope) ⇒ Object
- .save_config(tool, name, data, scope: $openc3_scope) ⇒ Object
Class Method Details
.delete_config(tool, name, scope: $openc3_scope) ⇒ Object
37 38 39 |
# File 'lib/openc3/models/tool_config_model.rb', line 37 def self.delete_config(tool, name, scope: $openc3_scope) Store.hdel("#{scope}__config__#{tool}", name) end |
.list_configs(tool, scope: $openc3_scope) ⇒ Object
25 26 27 |
# File 'lib/openc3/models/tool_config_model.rb', line 25 def self.list_configs(tool, scope: $openc3_scope) Store.hkeys("#{scope}__config__#{tool}") end |