summaryrefslogtreecommitdiff
path: root/examples/ruby/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ruby/test.rb')
-rwxr-xr-xexamples/ruby/test.rb25
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