Module: Kernel

Defined in:
lib/simple-templater/core_exts.rb

Instance Method Summary collapse

Instance Method Details

#sh(command) ⇒ Object


6
7
8
9
10
11
12
# File 'lib/simple-templater/core_exts.rb', line 6

def sh(command)
  puts "[SHELL] #{command}"
  Open3.popen3("sh", "-c", command) do |stdin, stderr, stdout|
    puts stdout.read
    puts stderr.read
  end
end