diff --git a/lib/mina/helpers.rb b/lib/mina/helpers.rb index 6832262e..0fedf257 100644 --- a/lib/mina/helpers.rb +++ b/lib/mina/helpers.rb @@ -366,5 +366,11 @@ def reindent(n, code) indent n, unindent(code) end + # ### capture + # Returns the output of command via SSH. + def capture(cmd, options={}) + ssh cmd, options.merge(return: true) + end + end end