File: print_config.rb

package info (click to toggle)
ruby-gnome2 0.15.0-1.1etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 7,704 kB
  • ctags: 8,558
  • sloc: ansic: 69,912; ruby: 19,511; makefile: 97; xml: 35; sql: 13
file content (16 lines) | stat: -rw-r--r-- 307 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Print system information about libgda.

require 'libgda'

def puts_dm (dm)
    puts dm.columns.join(', ')
    dm.each_row do |row|
        puts row.values.join(', ')
    end
end

puts "Configured data sources:"
puts_dm Gda::DataSource.model
puts ""
puts "Installed providers:"
puts_dm Gda::Provider.model