Method: Gct::TempLocalFile#read_path_file

Defined in:
lib/gct/temp_local_file.rb

#read_path_file(path, file) ⇒ Object



34
35
36
37
38
39
40
41
42
43
# File 'lib/gct/temp_local_file.rb', line 34

def read_path_file(path, file)
  begin
    file = File.new(File.join(path, file), "r")
    file.read
  rescue IOError => e
    raise e.message
  ensure
    file.close unless file.nil?
  end
end