Class: Imap::Backup::CLI::Remote

Inherits:
Thor
  • Object
show all
Includes:
Helpers, Thor::Actions
Defined in:
lib/imap/backup/cli/remote.rb

Instance Method Summary collapse

Methods included from Helpers

#account, #connection, #each_connection, #symbolized

Instance Method Details

#folders(email) ⇒ Object


7
8
9
10
11
12
13
# File 'lib/imap/backup/cli/remote.rb', line 7

def folders(email)
  connection = connection(email)

  connection.folder_names.each do |name|
    Kernel.puts %("#{name}")
  end
end