class AssMaintainer::InfoBase::DbCfg

Object for manipuate whith database configuration

Public Instance Methods

dump(path) click to toggle source

Dump configuration to .cf file @param path [String] @return [String] path

# File lib/ass_maintainer/info_base/cfg.rb, line 77
def dump(path)
  infobase.designer do
    dumpDBCfg path
  end.run.wait.result.verify!
  path
end
update(was_err = false) click to toggle source

Update database configuration from infobase configuration @param was_err [true false] control warningsAsErrors 1C:Enterprise

CLI parameter
# File lib/ass_maintainer/info_base/cfg.rb, line 65
def update(was_err = false)
  fail MethodDenied, :update if infobase.read_only?
  infobase.designer do
    updateDBCfg do
      warningsAsErrors if was_err
    end
  end.run.wait.result.verify!
end