Class: Imap::Backup::Setup::GlobalOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/imap/backup/setup/global_options.rb,
lib/imap/backup/setup/global_options/download_strategy_chooser.rb

Overview

Shows the menu of global options

Defined Under Namespace

Classes: DownloadStrategyChooser

Instance Method Summary collapse

Constructor Details

#initialize(config:) ⇒ GlobalOptions

Returns a new instance of GlobalOptions.

Parameters:



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

def initialize(config:)
  @config = config
end

Instance Method Details

#runvoid

This method returns an undefined value.

Shows the menu



18
19
20
21
22
23
24
25
# File 'lib/imap/backup/setup/global_options.rb', line 18

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