lib/wyrm/restore.rb
# open a dbp.bz2 file and either yield or return an io of the uncompressed contents
open a dbp.bz2 file and either yield or return an io of the uncompressed contents
open a dbp . bz2 file and either yield or return an io of the uncompressed contents
def open_bz2( table_name, &block )
      table_file =
      case table_name
      when Symbol
        container + "#{table_name}.dbp.bz2"
      when Pathname
        table_name
      else
        raise "Don't know what to do with #{table_name.inspect}"
      end
      IO.popen "#{STREAM_DCMP} #{table_file}", &block
    end
def open_bz2 ( table_name , & block ) table_file = case table_name when Symbol container + "#{table_name}.dbp.bz2" when Pathname table_name else raise "Don't know what to do with #{table_name.inspect}" end IO . popen "#{STREAM_DCMP} #{table_file}" , & block end
open a dbp.bz2 file and either yield or return an io of the uncompressed contents
open a dbp . bz2 file and either yield or return an io of the uncompressed contents
table_name
<not_specific>
block
<not_specific>