Class: Imap::Backup::Setup

Inherits:
Object
  • Object
show all
Defined in:
lib/imap/backup/setup.rb,
lib/imap/backup/setup/asker.rb,
lib/imap/backup/setup/account.rb,
lib/imap/backup/setup/helpers.rb,
lib/imap/backup/setup/backup_path.rb,
lib/imap/backup/setup/email_changer.rb,
lib/imap/backup/setup/account/header.rb,
lib/imap/backup/setup/folder_chooser.rb,
lib/imap/backup/setup/global_options.rb,
lib/imap/backup/setup/connection_tester.rb,
lib/imap/backup/setup/global_options/download_strategy_chooser.rb

Overview

Interactively updates the application’s configuration file

Defined Under Namespace

Classes: Account, Asker, BackupPath, ConnectionTester, EmailChanger, FolderChooser, GlobalOptions, Helpers

Class Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config:) ⇒ Setup

Returns a new instance of Setup.

Parameters:



22
23
24
# File 'lib/imap/backup/setup.rb', line 22

def initialize(config:)
  @config = config
end

Class Attribute Details

.highlineHighline

Returns:

  • (Highline)


17
18
19
# File 'lib/imap/backup/setup.rb', line 17

def highline
  @highline
end

Instance Method Details

#runvoid

This method returns an undefined value.

Shows the menu



28
29
30
31
32
33
34
35
# File 'lib/imap/backup/setup.rb', line 28

def run
  catch :done do
    loop do
      Kernel.system("clear")
      show_menu
    end
  end
end