Method: LinuxAdmin::SSH#perform_commands
- Defined in:
- lib/linux_admin/ssh.rb
#perform_commands(commands = [], agent_socket = nil, stdin = nil) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/linux_admin/ssh.rb', line 15 def perform_commands(commands = [], agent_socket = nil, stdin = nil) require 'net/ssh' if block_given? execute_commands(commands, agent_socket, stdin, &Proc.new) else execute_commands(commands, agent_socket, stdin) end end |