Module: Kernel

Defined in:
lib/picolena/templates/lib/core_exts.rb

Instance Method Summary collapse

Instance Method Details

#silently_execute(command) ⇒ Object

Executes a command and returns stdout while silenting stderr NOTE: Restricted to systems on which forking is possible. How to do on windows?



129
130
131
# File 'lib/picolena/templates/lib/core_exts.rb', line 129

def silently_execute(command)
  Open3.popen3(command){|i,e,o| e.read}
end