Sha256: 4eba9fe072f3f44264594b9834ff6d4bb3aa49ed99e17b44f9d945cf1ca32c01
Contents?: true
Size: 481 Bytes
Versions: 47
Compression:
Stored size: 481 Bytes
Contents
module SSHKit module Runner class Abstract attr_reader :hosts, :options, :block def initialize(hosts, options = nil, &block) @hosts = Array(hosts) @options = options || {} @block = block end private def backend(host, &block) if host.local? SSHKit::Backend::Local.new(&block) else SSHKit.config.backend.new(host, &block) end end end end end
Version data entries
47 entries across 47 versions & 3 rubygems