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

Overview

Handles interactive account setup

Defined Under Namespace

Classes: Header

Instance Method Summary collapse

Constructor Details

#initialize(config, account, highline) ⇒ Account

Returns a new instance of Account.

Parameters:

  • config (Configuration)

    the application configuration

  • account (Account)

    an Account

  • highline (Higline)

    the configured Highline instance

 18 19 20 21 22
# File 'lib/imap/backup/setup/account.rb', line 18 def initialize(config, , highline) @account =  @config = config @highline = highline end 

Instance Method Details

#runvoid

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 !.local_path .local_path = File.join(config.path, .username.tr("@", "_")) end catch :done do loop do Kernel.system("clear") create_menu end end end