Class: AssMaintainer::InfoBase::Cfg
- Inherits:
-
AbstractCfg
- Object
- AbstractCfg
- AssMaintainer::InfoBase::Cfg
- Defined in:
- lib/ass_maintainer/info_base/cfg.rb
Overview
Object for manipuate whith infobase configuration
Instance Attribute Summary
Attributes inherited from AbstractCfg
Instance Method Summary collapse
-
#dump(path) ⇒ String
Dump configuration to
.cffile. -
#dump_xml(path) ⇒ String
Dump configuration to
XMLfiles. -
#load(path) ⇒ String
Load configuration from
.cffile. -
#load_xml(path) ⇒ String
Load configuration from
XMLfiles.
Methods inherited from AbstractCfg
Constructor Details
This class inherits a constructor from AssMaintainer::InfoBase::AbstractCfg
Instance Method Details
#dump(path) ⇒ String
Dump configuration to .cf file
27 28 29 30 31 32 |
# File 'lib/ass_maintainer/info_base/cfg.rb', line 27 def dump(path) infobase.designer do dumpCfg path end.run.wait.result.verify! path end |
#dump_xml(path) ⇒ String
Dump configuration to XML files
17 18 19 20 21 22 |
# File 'lib/ass_maintainer/info_base/cfg.rb', line 17 def dump_xml(path) infobase.designer do dumpConfigToFiles path end.run.wait.result.verify! path end |
#load(path) ⇒ String
Load configuration from .cf file
48 49 50 51 52 53 54 |
# File 'lib/ass_maintainer/info_base/cfg.rb', line 48 def load(path) fail MethodDenied, :load_cf if infobase.read_only? infobase.designer do loadCfg path end.run.wait.result.verify! path end |
#load_xml(path) ⇒ String
Load configuration from XML files
37 38 39 40 41 42 43 |
# File 'lib/ass_maintainer/info_base/cfg.rb', line 37 def load_xml(path) fail MethodDenied, :load_xml if infobase.read_only? infobase.designer do loadConfigFromFiles path end.run.wait.result.verify! path end |