# File lib/capistrano/configuration/actions/invocation.rb, line 149 def run(cmd, options={}, &block) if options[:eof].nil? && !cmd.include?(sudo) options = options.merge(:eof => !block_given?) end block ||= self.class.default_io_proc tree = Command::Tree.new(self) { |t| t.else(cmd, &block) } run_tree(tree, options) end