Class: Net::SSH::Connection::Session::Shell

Inherits:
Object
  • Object
show all
Defined in:
lib/ssh/session.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sshObject (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, options)
  ssh.perform! wrap(command), options
end

#tell!(command) ⇒ Object



43
44
45
# File 'lib/ssh/session.rb', line 43

def tell!(command)
  ssh.tell! wrap(command)
end