summaryrefslogtreecommitdiff
path: root/examples/ruby/test.rb
blob: 7b63c4571a84716216bea4ffb7a7f08cd3eea167 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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