]> icculus.org git repositories - duncan/yastx-core.git/blob - examples/test-1.rb
more doc
[duncan/yastx-core.git] / examples / test-1.rb
1 require 'scr'
2 require 'yast'
3 require 'pp'
4
5 Plugin.define "yast_agent" do
6   author "Duncan"
7   version "1.0.0"
8   extends :agent
9   run_before :other
10   
11   def read(path)
12     m = YaST::Module.new("SCR")
13     return m.Read(path.to_s)
14   end
15       
16   def supports_path?(path)
17     return true
18   end
19 end
20
21 pp SCR::read(:'.proc.modules')