module SSHKit::Backend

Constants

MethodUnavailableError

Public Class Methods

current() click to toggle source

The Backend instance that is running in the current thread. If no Backend is running, returns `nil` instead.

Example:

on(:local) do
  self == SSHKit::Backend.current # => true
end
# File lib/sshkit/backends/abstract.rb, line 16
def self.current
  Thread.current["sshkit_backend"]
end