Method: CodeKindly::Utils::Command#run
- Defined in:
- lib/code_kindly/utils/command.rb
#run ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/code_kindly/utils/command.rb', line 20 def run require 'open3' command = @command command.join(' ') if command.is_a?(Array) @std_in, @std_out, @std_err = Open3.capture3(command) self end |