Class: Mxrb::TeamServer::CommandRunner

Inherits:
Object
  • Object
show all
Defined in:
lib/mxrb/team_server.rb

Overview

Injectable subprocess boundary used by the Git transport.

Instance Method Summary collapse

Instance Method Details

#capture(environment, command, chdir: nil) ⇒ Object



116
117
118
119
# File 'lib/mxrb/team_server.rb', line 116

def capture(environment, command, chdir: nil)
  options = chdir ? { chdir: } : {}
  Open3.capture2e(environment, *command, **options)
end