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/connection_tester.rb

Defined Under Namespace

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

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(config:) ⇒ Setup

Returns a new instance of Setup.


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

def initialize(config:)
  @config = config
end

Class Attribute Details

.highlineObject

Returns the value of attribute highline.


10
11
12
# File 'lib/imap/backup/setup.rb', line 10

def highline
  @highline
end

Instance Attribute Details

#configObject

Returns the value of attribute config.


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

def config
  @config
end

Instance Method Details

#runObject


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

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