Class: CodeKindly::Utils::Shell

Inherits:
Object
  • Object
show all
Defined in:
lib/code_kindly/utils/shell.rb

Class Method Summary collapse

Class Method Details

.run(command) ⇒ Object



5
6
7
8
9
# File 'lib/code_kindly/utils/shell.rb', line 5

def run (command)
  require 'open3'
  command = command.join(" ") if command.is_a?(Array)
  stdout_str, stderr_str, status = Open3.capture3(command)
end