Class: Imap::Backup::CLI::Transfer

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

Constant Summary collapse

ACTIONS =
%i(migrate mirror).freeze

Instance Method Summary collapse

Methods included from Helpers

#account, #load_config, #requested_accounts

Constructor Details

#initialize(action, source_email, destination_email, options) ⇒ Transfer

Returns a new instance of Transfer.



17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/imap/backup/cli/transfer.rb', line 17

def initialize(action, source_email, destination_email, options)
  super([])
  @action = action
  @source_email = source_email
  @destination_email = destination_email
  @options = options
  @automatic_namespaces = nil
  @config_path = nil
  @destination_delimiter = nil
  @destination_prefix = nil
  @reset = nil
  @source_delimiter = nil
  @source_prefix = nil
end