# File lib/net/ssh/connection/session.rb, line 348 def exec!(command, &block) block ||= Proc.new do |ch, type, data| ch[:result] ||= "" ch[:result] << data end channel = exec(command, &block) channel.wait return channel[:result] end