diff options
Diffstat (limited to 'examples/ruby/test.rb')
-rwxr-xr-x | examples/ruby/test.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/examples/ruby/test.rb b/examples/ruby/test.rb new file mode 100755 index 0000000..7b63c45 --- /dev/null +++ b/examples/ruby/test.rb @@ -0,0 +1,25 @@ +#!/usr/bin/ruby + +require 'zypp' +include Zypp + +a = Arch.new("i386") +puts a.inspect +#exit + +z = ZYppFactory::instance.get_zypp + +puts z.inspect +puts z.architecture.to_s + +puts z.home_path +puts z.home_path.class + +t = z.initialize_target("/") +r = z.target.resolvables +puts r.class +r.each do | p | + puts "#{p.name} #{p.edition}" +end + +#puts z.methods |