class Prepp::Target
Public Instance Methods
connection()
click to toggle source
# File lib/prepp/target.rb, line 5 def connection @connection ||= Net::SSH.start(host, user, options) end
execute(commands)
click to toggle source
# File lib/prepp/target.rb, line 9 def execute(commands) commands.each do |cmd| cmd.results << connection.exec!(cmd.to_s) end end