Sha256: 76aea9e5efdcc80331d0563b3acc082f0c94b3a3bb32c9d6efd32fcfb06754d7
Contents?: true
Size: 489 Bytes
Versions: 7
Compression:
Stored size: 489 Bytes
Contents
# coding: UTF-8 require 'climate_control' module Cocaine 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 `#{command}` end end private def with_modified_environment(env, &block) ClimateControl.modify(env, &block) end end end end
Version data entries
7 entries across 7 versions & 2 rubygems