Class: Ghaki::NetSSH::Account

Inherits:
Account::Base
  • Object
show all
Defined in:
lib/ghaki/net_ssh/account.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ Account

Returns a new instance of Account.



10
11
12
# File 'lib/ghaki/net_ssh/account.rb', line 10

def initialize opts={}; super opts
  @logger = opts[:logger]
end

Instance Attribute Details

#loggerObject

Returns the value of attribute logger.



8
9
10
# File 'lib/ghaki/net_ssh/account.rb', line 8

def logger
  @logger
end

Instance Method Details

#start_ftp(opts = {}, &block) ⇒ Object



19
20
21
22
# File 'lib/ghaki/net_ssh/account.rb', line 19

def start_ftp opts={}, &block
  Ghaki::NetSSH::FTP.start \
    setup_shell_opts(opts), &block
end

#start_shell(opts = {}, &block) ⇒ Object



14
15
16
17
# File 'lib/ghaki/net_ssh/account.rb', line 14

def start_shell opts={}, &block
  Ghaki::NetSSH::Shell.start \
    setup_shell_opts(opts), &block
end

#start_telnet(opts = {}, &block) ⇒ Object



24
25
26
27
# File 'lib/ghaki/net_ssh/account.rb', line 24

def start_telnet opts={}, &block
  Ghaki::NetSSH::Telnet.start \
    setup_shell_opts(opts), &block
end