Class: Imap::Backup::Setup::FolderChooser
- Inherits:
-
Object
- Object
- Imap::Backup::Setup::FolderChooser
- Defined in:
- lib/imap/backup/setup/folder_chooser.rb
Instance Attribute Summary collapse
-
#account ⇒ Object
readonly
Returns the value of attribute account.
Instance Method Summary collapse
-
#initialize(account) ⇒ FolderChooser
constructor
A new instance of FolderChooser.
- #run ⇒ Object
Constructor Details
#initialize(account) ⇒ FolderChooser
Returns a new instance of FolderChooser.
11 12 13 |
# File 'lib/imap/backup/setup/folder_chooser.rb', line 11 def initialize(account) @account = account end |
Instance Attribute Details
#account ⇒ Object (readonly)
Returns the value of attribute account.
9 10 11 |
# File 'lib/imap/backup/setup/folder_chooser.rb', line 9 def account @account end |
Instance Method Details
#run ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/imap/backup/setup/folder_chooser.rb', line 15 def run if client.nil? highline.ask "Press a key " return end if folder_names.empty? Logger.logger.warn "Unable to get folder list" highline.ask "Press a key " return end remove_missing catch :done do loop do Kernel.system("clear") end end end |