Class: Imap::Backup::Setup::Account
- Inherits:
-
Object
- Object
- Imap::Backup::Setup::Account
- Defined in:
- lib/imap/backup/setup/account.rb,
lib/imap/backup/setup/account/header.rb
Overview
Handles interactive account setup
Defined Under Namespace
Classes: Header
Instance Method Summary collapse
-
#initialize(config, account, highline) ⇒ Account
constructor
A new instance of Account.
-
#run ⇒ void
Shows the menu.
Constructor Details
#initialize(config, account, highline) ⇒ Account
Returns a new instance of Account.
18 19 20 21 22 |
# File 'lib/imap/backup/setup/account.rb', line 18 def initialize(config, account, highline) @account = account @config = config @highline = highline end |
Instance Method Details
#run ⇒ void
This method returns an undefined value.
Shows the menu
26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/imap/backup/setup/account.rb', line 26 def run if !account.local_path account.local_path = File.join(config.path, account.username.tr("@", "_")) end catch :done do loop do Kernel.system("clear") end end end |