Class: Net::SSH::Connection::Session::Shell
- Inherits:
-
Object
- Object
- Net::SSH::Connection::Session::Shell
- Defined in:
- lib/ssh/session.rb
Instance Attribute Summary collapse
-
#ssh ⇒ Object
readonly
Returns the value of attribute ssh.
Instance Method Summary collapse
- #exec!(command) ⇒ Object
-
#initialize(ssh) ⇒ Shell
constructor
A new instance of Shell.
- #perform!(command, options) ⇒ Object
- #tell!(command) ⇒ Object
Constructor Details
#initialize(ssh) ⇒ Shell
Returns a new instance of Shell.
31 32 33 |
# File 'lib/ssh/session.rb', line 31 def initialize(ssh) @ssh = ssh end |
Instance Attribute Details
#ssh ⇒ Object (readonly)
Returns the value of attribute ssh.
29 30 31 |
# File 'lib/ssh/session.rb', line 29 def ssh @ssh end |
Instance Method Details
#exec!(command) ⇒ Object
39 40 41 |
# File 'lib/ssh/session.rb', line 39 def exec!(command) ssh.exec! wrap(command) end |
#perform!(command, options) ⇒ Object
35 36 37 |
# File 'lib/ssh/session.rb', line 35 def perform!(command, ) ssh.perform! wrap(command), end |
#tell!(command) ⇒ Object
43 44 45 |
# File 'lib/ssh/session.rb', line 43 def tell!(command) ssh.tell! wrap(command) end |