Module: Yast::FirstbootRoutinesInclude

Defined in:
../../src/include/firstboot/routines.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) initialize_firstboot_routines(include_target)



31
32
33
# File '../../src/include/firstboot/routines.rb', line 31

def initialize_firstboot_routines(include_target)
  Yast.import "XML"
end

- (Object) XmlSetup

Setup XML for alice

Returns:

  • void



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# File '../../src/include/firstboot/routines.rb', line 38

def XmlSetup
  doc = {}
  Ops.set(doc, "cdataSections", [])
  Ops.set(
    doc,
    "listEntries",
    {
      "workflows"        => "workflow",
      "modules"          => "module",
      "proposal_modules" => "proposal_module",
      "proposals"        => "proposal"
    }
  )

  Ops.set(doc, "rootElement", "productDefines")
  Ops.set(doc, "systemID", "/usr/share/YaST2/control/control.dtd")
  Ops.set(doc, "nameSpace", "http://www.suse.com/1.0/yast2ns")
  Ops.set(doc, "typeNamespace", "http://www.suse.com/1.0/configns")
  XML.xmlCreateDoc(:firstboot, doc)
  nil
end