]> icculus.org git repositories - duncan/yast2-ruby-bindings.git/blob - examples/ruby/module-storage.rb
fix the method call, and learned to use the * operator in the way.
[duncan/yast2-ruby-bindings.git] / examples / ruby / module-storage.rb
1 require 'yast'
2 require 'ycp/storage'
3
4
5 puts YCP::Storage.methods
6
7 dp = YCP::Storage::GetDiskPartition("/dev/sda1")
8 dp.each do | key, value |
9   puts "#{key} #{value}"
10 end