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.
37 38 39 |
# File 'lib/ssh/session.rb', line 37 def initialize(ssh) @ssh = ssh end |
Instance Attribute Details
#ssh ⇒ Object (readonly)
Returns the value of attribute ssh.
35 36 37 |
# File 'lib/ssh/session.rb', line 35 def ssh @ssh end |
Instance Method Details
#exec!(command) ⇒ Object
45 46 47 |
# File 'lib/ssh/session.rb', line 45 def exec!(command) ssh.exec! wrap(command) end |
#perform!(command, options) ⇒ Object
41 42 43 |
# File 'lib/ssh/session.rb', line 41 def perform!(command, ) ssh.perform! wrap(command), end |
#tell!(command) ⇒ Object
49 50 51 |
# File 'lib/ssh/session.rb', line 49 def tell!(command) ssh.tell! wrap(command) end |