Method: ChdirRunner#run
- Defined in:
- app/ports/chdir_runner.rb
#run(command, input = '', env = {}) ⇒ Object
25 26 27 28 29 30 31 32 33 |
# File 'app/ports/chdir_runner.rb', line 25 def run(command, input='', env={}) prevdir = Dir.pwd begin Dir.chdir(@dir) @runner.run(command, input, env) ensure Dir.chdir(prevdir) end end |