Module: WinRM::Shells::Suppressible
- Included in:
- Base
- Defined in:
- lib/winrm/shells/suppressible.rb
Overview
Shell mixin for suppressing a network exception
Instance Method Summary collapse
-
#suppressible ⇒ Object
performs an operation and suppresses any network exceptions.
Instance Method Details
#suppressible ⇒ Object
performs an operation and suppresses any network exceptions
24 25 26 27 28 |
# File 'lib/winrm/shells/suppressible.rb', line 24 def suppressible yield rescue *WinRM::NETWORK_EXCEPTIONS.call => e logger.info("[WinRM] Exception suppressed: #{e.}") end |