diff options
author | Duncan Mac-Vicar P <dmacvicar@suse.de> | 2007-07-16 10:40:42 +0000 |
---|---|---|
committer | Duncan Mac-Vicar P <dmacvicar@suse.de> | 2007-07-16 10:40:42 +0000 |
commit | 96889478a470af7926681c5ec78dfa10b460a449 (patch) | |
tree | 3120e540d0497a056afdc3eb26e7e5993b285c01 /examples | |
parent | b58c6b95fa494fe7b41135efc42472dd185e6667 (diff) | |
download | libzypp-bindings-96889478a470af7926681c5ec78dfa10b460a449.tar.gz libzypp-bindings-96889478a470af7926681c5ec78dfa10b460a449.tar.bz2 libzypp-bindings-96889478a470af7926681c5ec78dfa10b460a449.zip |
merge REFACTORING-10_3 back to trunk
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ruby/play_with_repos.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/ruby/play_with_repos.rb b/examples/ruby/play_with_repos.rb new file mode 100644 index 0000000..5babf55 --- /dev/null +++ b/examples/ruby/play_with_repos.rb @@ -0,0 +1,18 @@ + +require 'rzypp' +include Rzypp + +a = Arch.new("i386") +puts a.to_s +#exit + +z = ZYppFactory::instance.get_zypp + +manager = RepoManager.new + +manager.known_repositories.each do | repo | + repo.base_urls.each do | url | + puts url.to_s + end +end + |