# File lib/aruba/api.rb, line 261 def run(cmd) @commands ||= [] @commands << cmd cmd = detect_ruby(cmd) in_current_dir do Aruba.config.hooks.execute(:before_cmd, self, cmd) announcer.dir(Dir.pwd) announcer.cmd(cmd) process = Process.new(cmd, exit_timeout, io_wait) register_process(cmd, process) process.run! block_given? ? yield(process) : process end end