module Parsefiles::Parse

Public Instance Methods

parse_gz() click to toggle source

Handles tar.gz and zip

# File lib/parsefiles/parse.rb, line 9
def parse_gz
  File.open(file, "r") do |f|
    gz = Zlib::GzipReader.new(f)
    gz.each_line do |line|
      match_line(line.chomp)
    end
  end
end
parse_log() click to toggle source
# File lib/parsefiles/parse.rb, line 22
def parse_log
  File.open(@file, "r") do |open_file|
    open_file.each do |line|
      match_line(line.chomp)
    end
  end
end
Also aliased as: parse_txt
parse_txt()
Alias for: parse_log
parse_zip() click to toggle source
# File lib/parsefiles/parse.rb, line 18
def parse_zip
  #TODO
end