class WinRM::FS::Core::TmpZip::NoDupIO

Simple delegate wrapper to prevent ‘#dup` calls being made on IO objects. This is used to bypass an issue in the `Zip::Outputstream` constructor where an incoming IO is duplicated, leading to races on flushing the final stream to disk.

@author Fletcher Nichol <fnichol@nichol.ca> @api private

Public Instance Methods

dup() click to toggle source

@return [self] returns self and does not return a duplicate

object
# File lib/winrm-fs/core/tmp_zip.rb, line 171
def dup
  self
end