class Commutateurs::Base
Public Class Methods
new(host, credentials, verbose = false)
click to toggle source
# File lib/commutateurs/base.rb, line 3 def initialize(host, credentials, verbose = false) @enable = credentials.enable @transport = Ssh.new(verbose) @transport.host = host @transport.user = credentials.user @transport.password = credentials.password end
Public Instance Methods
execute(line)
click to toggle source
# File lib/commutateurs/base.rb, line 12 def execute(line) @transport.command line end