Sha256: 77736e2fd81c51450f0048f0a783e5b153869ce54380b0200bbb35b8a8793f7f
Contents?: true
Size: 364 Bytes
Versions: 2
Compression:
Stored size: 364 Bytes
Contents
# coding: UTF-8 require 'climate_control' module Cocaine class CommandLine class BackticksRunner def call(command, env = {}) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cocaine-0.5.1 | lib/cocaine/command_line/runners/backticks_runner.rb |
cocaine-0.5.0 | lib/cocaine/command_line/runners/backticks_runner.rb |