Sha256: 79a6c0ab42a8b948eea021c8ab0e7f63cfcc2e25ae1c0f9da7c1b9d8cc552f66
Contents?: true
Size: 249 Bytes
Versions: 45
Compression:
Stored size: 249 Bytes
Contents
require 'pty' module Bizside::SafePty def self.spawn command, &block PTY.spawn(command) do |r, w, p| begin yield r, w, p rescue Errno::EIO ensure Process.wait p end end $?.exitstatus end end
Version data entries
45 entries across 45 versions & 1 rubygems