Class: Imap::Backup::Setup
- Inherits:
-
Object
- Object
- Imap::Backup::Setup
- 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
-
#initialize(config:) ⇒ Setup
constructor
A new instance of Setup.
-
#run ⇒ void
Shows the menu.
Constructor Details
#initialize(config:) ⇒ Setup
Returns a new instance of Setup.
22 23 24 |
# File 'lib/imap/backup/setup.rb', line 22 def initialize(config:) @config = config end |
Class Attribute Details
.highline ⇒ Highline
17 18 19 |
# File 'lib/imap/backup/setup.rb', line 17 def highline @highline end |
Instance Method Details
#run ⇒ void
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") end end end |