Class: WinRM::FS::Core::TmpZip::NoDupIO Private

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/winrm-fs/core/tmp_zip.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

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:

Instance Method Summary collapse

Instance Method Details

#dupself

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns self and does not return a duplicate object

Returns:

  • (self)

    returns self and does not return a duplicate object



171
172
173
# File 'lib/winrm-fs/core/tmp_zip.rb', line 171

def dup
  self
end