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.



37
38
39
# File 'lib/ssh/session.rb', line 37

def initialize(ssh)
  @ssh = ssh
end

Instance Attribute Details

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

#tell!(command) ⇒ Object



49
50
51
# File 'lib/ssh/session.rb', line 49

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