On Fri, Jun 15, 2012 at 10:06 AM, Erik D. <[email protected]> wrote:
...> [code]
>
> require 'rubygems'
> require 'ruport'
>
> data = `df -h`.split "\n"
> header=data.shift.split " ", 6
> data  = data.map{|line| line.split(/  +/)}
> report = Ruport::Data::Table.new :data => data, :column_names => header
> table = table.sub_table{("Filesystem , Size, Used")}
should this ^ be report?  There is no table defined other than on this line


> puts report
>
> [/code]

-- You received this message because you are subscribed to the Google Groups 
ruby-talk-google group. To post to this group, send email to 
[email protected]. To unsubscribe from this group, send email 
to [email protected]. For more options, visit this 
group at https://groups.google.com/d/forum/ruby-talk-google?hl=en

Reply via email to