https://pulumi.com logo
#general
Title
# general
f

flat-insurance-25294

12/20/2019, 10:43 AM
@gifted-engine-92308 We do this (well with Ruby) and we just pipe to shell.
Copy code
def run_command(command)
    puts command
    Open3.popen2e(command) do |stdin, stdout_err, wait_thr|
      while line = stdout_err.gets
        puts line
      end

      exit_status = wait_thr.value
      abort "FAILED: #{command}" unless exit_status.success?
      return exit_status
    end
  end