From d6ac3d222488959fd044f0433bbe82b4ef95e250 Mon Sep 17 00:00:00 2001 From: Arvin Schnell Date: Wed, 25 Jul 2007 13:56:27 +0000 Subject: - some work on capabilities --- examples/ruby/list_target_resolvables.rb | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'examples/ruby') diff --git a/examples/ruby/list_target_resolvables.rb b/examples/ruby/list_target_resolvables.rb index a4e40ea..da88a0d 100644 --- a/examples/ruby/list_target_resolvables.rb +++ b/examples/ruby/list_target_resolvables.rb @@ -12,11 +12,22 @@ r = z.target.resolvables # puts r.class r.each do | p | + # puts p.class puts "#{p.kind_to_s} #{p.name} #{p.edition.to_s} #{p.arch.to_s}" - puts " #{p.summary}" - puts " #{p.size}" - puts " #{p.vendor}" - puts " #{p.buildtime}" + puts " Summary: #{p.summary}" + puts " Size: #{p.size}" + puts " Vendor: #{p.vendor}" + puts " Buildtime: #{p.buildtime}" + + d = p.dep(Dep.PROVIDES) + # puts d.class + d.each do | x | + # puts x.class + puts " Provides: #{x.to_s}" + end + + puts + end -- cgit v1.2.3