Class: AssMaintainer::InfoBase::Cfg

Inherits:
AbstractCfg show all
Defined in:
lib/ass_maintainer/info_base/cfg.rb

Overview

Object for manipuate whith infobase configuration

Instance Attribute Summary

Attributes inherited from AbstractCfg

#infobase

Instance Method Summary collapse

Methods inherited from AbstractCfg

#initialize

Constructor Details

This class inherits a constructor from AssMaintainer::InfoBase::AbstractCfg

Instance Method Details

#dump(path) ⇒ String

Dump configuration to .cf file

Parameters:

  • path (String)

Returns:

  • (String)

    path



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

Parameters:

  • path (String)

Returns:

  • (String)

    path



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

Parameters:

  • path (String)

Returns:

  • (String)

    path



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

Parameters:

  • path (String)

Returns:

  • (String)

    path



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