Sha256: 43b817f3098073a90359dd8af6113e5bbff5cf8d05bfd2d0824f9cdaebfd9bc5

Contents?: true

Size: 362 Bytes

Versions: 15

Compression:

Stored size: 362 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

    def self.pfork4(*cmd, &blk)
      require 'open4'
      Open4.pfork4 *cmd, &blk
    end
  end
end

Version data entries

15 entries across 15 versions & 3 rubygems

Version Path
mina-0.3.8 lib/mina/tools.rb
mina-0.3.7 lib/mina/tools.rb
mina-0.3.6 lib/mina/tools.rb
mina-0.3.4 lib/mina/tools.rb
mina-0.3.3 lib/mina/tools.rb
colorful-mina-0.3.1 lib/mina/tools.rb
mina-0.3.2 lib/mina/tools.rb
mina-0.3.1 lib/mina/tools.rb
mina-traackr-0.3.0 lib/mina/tools.rb
mina-0.3.0 lib/mina/tools.rb
mina-0.2.1 lib/mina/tools.rb
mina-0.2.0 lib/mina/tools.rb
mina-0.2.0.pre2 lib/mina/tools.rb
mina-0.1.3.pre1 lib/mina/tools.rb
mina-0.1.2 lib/mina/tools.rb