Method: Yast::SCR.Read

Defined in:
src/ruby/yast/scr.rb

.Read(path, *args) ⇒ Object

Reads data

Examples:

Get netcards discovered by probe agent

SCR.Read(path(".probe.netcard"))

Read content of file /tmp/test

SCR.Read(path(".target.string"), "tmp/test")

Parameters:

  • path (Yast::Path, String)

    path that is combination of path where agent is attached and path inside agent

  • args

    additional arguments depending on agent, usually optional



17
18
19
# File 'src/ruby/yast/scr.rb', line 17

def self.Read(path, *args)
  call_builtin_wrapper("Read", Yast.path(path), *args)
end