diff --git a/lib/riemann/dash/browser_config/file.rb b/lib/riemann/dash/browser_config/file.rb index 3b12871..a266e10 100644 --- a/lib/riemann/dash/browser_config/file.rb +++ b/lib/riemann/dash/browser_config/file.rb @@ -7,7 +7,7 @@ def initialize(path) end def read - if ::File.exists? @path + if ::File.exist? @path ::File.open(@path, 'r') do |f| f.flock ::File::LOCK_SH f.read