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

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

Overview

Allows changing the globally configured download strategy

Instance Method Summary collapse

Constructor Details

#initialize(config:) ⇒ DownloadStrategyChooser

Returns a new instance of DownloadStrategyChooser.

Parameters:



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

def initialize(config:)
  @config = config
end

Instance Method Details

#runvoid

This method returns an undefined value.

Shows the menu



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

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