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/email.rb,
lib/imap/backup/setup/account.rb,
lib/imap/backup/setup/helpers.rb,
lib/imap/backup/setup/backup_path.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

Defined Under Namespace

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

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config:) ⇒ Setup

Returns a new instance of Setup.



19
20
21
# File 'lib/imap/backup/setup.rb', line 19

def initialize(config:)
  @config = config
end

Class Attribute Details

.highlineObject

Returns the value of attribute highline.



13
14
15
# File 'lib/imap/backup/setup.rb', line 13

def highline
  @highline
end

Instance Attribute Details

#configObject

Returns the value of attribute config.



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

def config
  @config
end

Instance Method Details

#runObject



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

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