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 Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers

#account, included, #load_config, #requested_accounts

Constructor Details

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

Returns a new instance of Transfer.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
# File 'lib/imap/backup/cli/transfer.rb', line 29

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

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



17
18
19
# File 'lib/imap/backup/cli/transfer.rb', line 17

def action
  @action
end

#automatic_namespacesObject

Returns the value of attribute automatic_namespaces.



18
19
20
# File 'lib/imap/backup/cli/transfer.rb', line 18

def automatic_namespaces
  @automatic_namespaces
end

#config_pathObject

Returns the value of attribute config_path.



19
20
21
# File 'lib/imap/backup/cli/transfer.rb', line 19

def config_path
  @config_path
end

#destination_delimiterObject

Returns the value of attribute destination_delimiter.



20
21
22
# File 'lib/imap/backup/cli/transfer.rb', line 20

def destination_delimiter
  @destination_delimiter
end

#destination_emailObject (readonly)

Returns the value of attribute destination_email.



21
22
23
# File 'lib/imap/backup/cli/transfer.rb', line 21

def destination_email
  @destination_email
end

#destination_prefixObject

Returns the value of attribute destination_prefix.



22
23
24
# File 'lib/imap/backup/cli/transfer.rb', line 22

def destination_prefix
  @destination_prefix
end

#optionsObject (readonly)

Returns the value of attribute options.



23
24
25
# File 'lib/imap/backup/cli/transfer.rb', line 23

def options
  @options
end

#resetObject

Returns the value of attribute reset.



24
25
26
# File 'lib/imap/backup/cli/transfer.rb', line 24

def reset
  @reset
end

#source_delimiterObject

Returns the value of attribute source_delimiter.



25
26
27
# File 'lib/imap/backup/cli/transfer.rb', line 25

def source_delimiter
  @source_delimiter
end

#source_emailObject (readonly)

Returns the value of attribute source_email.



26
27
28
# File 'lib/imap/backup/cli/transfer.rb', line 26

def source_email
  @source_email
end

#source_prefixObject

Returns the value of attribute source_prefix.



27
28
29
# File 'lib/imap/backup/cli/transfer.rb', line 27

def source_prefix
  @source_prefix
end