class Object
Public Instance Methods
indent(s)
click to toggle source
# File lib/bundler/patch/cli.rb, line 171 def indent(s) s.split("\n").map { |ln| " #{ln}" }.join("\n") end
shell_command(command)
click to toggle source
# 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