Class: Brew::SystemRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/brew/utils/system_runner.rb

Instance Method Summary collapse

Instance Method Details

#get_output_lines(command) ⇒ Object



14
15
16
# File 'lib/brew/utils/system_runner.rb', line 14

def get_output_lines(command)
  run_with_output(command)
end


7
8
9
10
11
12
# File 'lib/brew/utils/system_runner.rb', line 7

def print_output(command)
  lines = run_with_output(command) do |line|
    $stdout.puts line
  end
  lines.join
end