Class: Imap::Backup::Setup::GlobalOptions::DownloadStrategyChooser
- Inherits:
-
Object
- Object
- Imap::Backup::Setup::GlobalOptions::DownloadStrategyChooser
- Defined in:
- lib/imap/backup/setup/global_options/download_strategy_chooser.rb
Overview
Allows changing the globally configured download strategy
Instance Method Summary collapse
-
#initialize(config:) ⇒ DownloadStrategyChooser
constructor
A new instance of DownloadStrategyChooser.
-
#run ⇒ void
Shows the menu.
Constructor Details
#initialize(config:) ⇒ DownloadStrategyChooser
Returns a new instance of DownloadStrategyChooser.
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
#run ⇒ void
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") end end end |