Top Level Namespace
Defined Under Namespace
Modules: Bundler
Classes: GemsToPatchReconciler, TargetBundle
Instance Method Summary
collapse
Instance Method Details
#indent(s) ⇒ Object
171
172
173
|
# File 'lib/bundler/patch/cli.rb', line 171
def indent(s)
s.split("\n").map { |ln| " #{ln}" }.join("\n")
end
|
#shell_command(command) ⇒ Object
159
160
161
162
163
164
165
166
167
168
169
|
# File 'lib/bundler/patch/cli.rb', line 159
def shell_command(command)
puts "-command: #{command}" if ENV['BP_DEBUG']
stdout, stderr, status = Open3.capture3(command)
if ENV['BP_DEBUG']
puts "--stdout:#{indent(stdout)}"
puts "--stderr:#{indent(stderr)}"
end
{stdout: stdout,
stderr: stderr,
status: status}
end
|