Method: Permpress::Command#run
- Defined in:
- lib/permpress/command.rb
#run(io = $stdout) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/permpress/command.rb', line 15 def run(io = $stdout) Bundler.with_clean_env do Open3.popen3(command) do |_, stdout, _, thread| stdout.each do |line| io.puts line end exit thread.value.exitstatus end end end |