Sha256: 89cf804cad50daf58a37e395d4da5871d449b5530d35c0b282e529f454a4e243
Contents?: true
Size: 502 Bytes
Versions: 6
Compression:
Stored size: 502 Bytes
Contents
# coding: UTF-8 require 'climate_control' module Terrapin class CommandLine class BackticksRunner def self.supported? true end def supported? self.class.supported? end def call(command, env = {}, options = {}) with_modified_environment(env) do Output.new(`#{command}`) 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