Class: CommandRunner
- Inherits:
-
Object
- Object
- CommandRunner
- Defined in:
- lib/util/command_runner.rb
Instance Method Summary collapse
-
#run(command, dir) ⇒ Array
Executes a shell command in a specified directory.
Instance Method Details
#run(command, dir) ⇒ Array
Executes a shell command in a specified directory. This is wrapped in a class to make it easy to mock in tests.
9 10 11 |
# File 'lib/util/command_runner.rb', line 9 def run(command, dir) Open3.capture2e(command, chdir: dir) end |