# File lib/geminstaller/file_reader.rb, line 23
23: def do_open(file_path)
24: File.open(file_path)
25: end
# File lib/geminstaller/file_reader.rb, line 27
27: def do_read(file)
28: file.read
29: end
# File lib/geminstaller/file_reader.rb, line 3
3: def read(file_path)
4: file_contents = nil
5: if !File.exist?(file_path) then
6: raise GemInstaller::MissingFileError.new("#{file_path}")
7: end
8:
9: file = nil
10: begin
11: file = do_open(file_path)
12: rescue
13: raise GemInstaller::GemInstallerError.new("Error: Unable open file #{file_path}. Please ensure that this file can be opened.\n")
14: end
15:
16: begin
17: do_read(file)
18: rescue
19: raise GemInstaller::GemInstallerError.new("Error: Unable read file #{file_path}. Please ensure that this file can be read.\n")
20: end
21: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.