Class: Ghaki::NetSSH::Account
- Inherits:
-
Account::Base
- Object
- Account::Base
- Ghaki::NetSSH::Account
- Defined in:
- lib/ghaki/net_ssh/account.rb
Instance Attribute Summary collapse
-
#logger ⇒ Object
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ Account
constructor
A new instance of Account.
- #start_ftp(opts = {}, &block) ⇒ Object
- #start_shell(opts = {}, &block) ⇒ Object
- #start_telnet(opts = {}, &block) ⇒ Object
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
#logger ⇒ Object
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 |