Sha256: ee38abca19d6ba8b1b8523d2603cb785b00912d751b201223eb1f74bb5278586
Contents?: true
Size: 535 Bytes
Versions: 6
Compression:
Stored size: 535 Bytes
Contents
# coding: UTF-8 module Terrapin class CommandLine class PopenRunner def self.supported? true end def supported? self.class.supported? end def call(command, env = {}, options = {}) with_modified_environment(env) do IO.popen(command, "r", options) do |pipe| Output.new(pipe.read) end end end private def with_modified_environment(env, &block) ClimateControl.modify(env, &block) end end end end
Version data entries
6 entries across 5 versions & 2 rubygems