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
Defined Under Namespace
Classes: Header
Instance Method Summary collapse
-
#initialize(config, account, highline) ⇒ Account
constructor
A new instance of Account.
- #run ⇒ Object
Constructor Details
#initialize(config, account, highline) ⇒ Account
Returns a new instance of Account.
14 15 16 17 18 |
# File 'lib/imap/backup/setup/account.rb', line 14 def initialize(config, account, highline) @account = account @config = config @highline = highline end |
Instance Method Details
#run ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/imap/backup/setup/account.rb', line 20 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 |