Displaying 1 result from an estimated 1 matches for "rightbox".
Did you mean:
lightbox
2010 May 29
0
Tar archive extract to buffer and offer for view / download
...iew
$result = Hash.new
Tar.gzopen(log_archive, File::RDONLY, 0644, Tar::GNU |
Tar::VERBOSE) do |tar|
tar.each do
if tar.reg? # regular file
buf = tar.extract_buffer
$result[tar.pathname] = buf
end
end
end
end
View:
<div class="rightbox">
<h1><%= File.basename(@log.log_archive) %></h1>
<testFu />
<% $result.each do |key, value| %>
<li><%= key %></li>
<!-- how to offer view / download options for the buffer ??? --
>
<% end %>...