Sha256: 9cc9ff18a20e091e1b4c1df81fa4df476c086434eddbe441181ae767b2e26873

Contents?: true

Size: 258 Bytes

Versions: 2

Compression:

Stored size: 258 Bytes

Contents

module Mina
  module Tools
    if IO.respond_to?(:popen4)
      def self.popen4(*cmd, &blk)
        IO.popen4 *cmd, &blk
      end
    else
      def self.popen4(*cmd, &blk)
        require 'open4'
        Open4.popen4 *cmd, &blk
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mina-0.1.1 lib/mina/tools.rb
mina-0.1.0 lib/mina/tools.rb