Class: Commutateurs::Base
- Inherits:
-
Object
- Object
- Commutateurs::Base
- Defined in:
- lib/commutateurs/device.rb
Instance Method Summary collapse
- #execute(line) ⇒ Object
-
#initialize(host, credentials, verbose = false) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(host, credentials, verbose = false) ⇒ Base
Returns a new instance of Base.
12 13 14 15 16 17 18 19 |
# File 'lib/commutateurs/device.rb', line 12 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 |
Instance Method Details
#execute(line) ⇒ Object
21 22 23 |
# File 'lib/commutateurs/device.rb', line 21 def execute(line) @transport.command line end |