Method: DRbFileClient#read
- Defined in:
- lib/drb_fileclient.rb
#read(filename = @filename) ⇒ Object
159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/drb_fileclient.rb', line 159 def read(filename=@filename) return File.read filename, s unless @directory or filename =~ /^dfs:\/\// if filename =~ /^dfs:\/\// then @file, path = parse_path(filename) else path = File.join(@directory, filename) end @file.read path end |