Class: Imap::Backup::Setup::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/imap/backup/setup/account.rb,
lib/imap/backup/setup/account/header.rb

Defined Under Namespace

Classes: Header

Instance Method Summary collapse

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, , highline)
  @account = 
  @config = config
  @highline = highline
end

Instance Method Details

#runObject



20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/imap/backup/setup/account.rb', line 20

def run
  if !.local_path
    .local_path = File.join(config.path, .username.tr("@", "_"))
  end

  catch :done do
    loop do
      Kernel.system("clear")
      create_menu
    end
  end
end