# File lib/cgikit/resource.rb, line 417 def write( path, content, lock = true ) if lock then FileLock.exclusive_lock(path, 'wb') do |file| file.write(content.to_s) end else File.open(path, 'wb') do |file| file.write(content.to_s) end end end