Class: Imap::Backup::CLI::Transfer
- Inherits:
-
Thor
- Object
- Thor
- Imap::Backup::CLI::Transfer
- Includes:
- Helpers, Thor::Actions
- Defined in:
- lib/imap/backup/cli/transfer.rb
Constant Summary collapse
- ACTIONS =
%i(migrate mirror).freeze
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#automatic_namespaces ⇒ Object
Returns the value of attribute automatic_namespaces.
-
#config_path ⇒ Object
Returns the value of attribute config_path.
-
#destination_delimiter ⇒ Object
Returns the value of attribute destination_delimiter.
-
#destination_email ⇒ Object
readonly
Returns the value of attribute destination_email.
-
#destination_prefix ⇒ Object
Returns the value of attribute destination_prefix.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#reset ⇒ Object
Returns the value of attribute reset.
-
#source_delimiter ⇒ Object
Returns the value of attribute source_delimiter.
-
#source_email ⇒ Object
readonly
Returns the value of attribute source_email.
-
#source_prefix ⇒ Object
Returns the value of attribute source_prefix.
Instance Method Summary collapse
-
#initialize(action, source_email, destination_email, options) ⇒ Transfer
constructor
A new instance of Transfer.
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.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/imap/backup/cli/transfer.rb', line 28 def initialize(action, source_email, destination_email, ) super([]) @action = action @source_email = source_email @destination_email = destination_email @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
#action ⇒ Object (readonly)
Returns the value of attribute action.
16 17 18 |
# File 'lib/imap/backup/cli/transfer.rb', line 16 def action @action end |
#automatic_namespaces ⇒ Object
Returns the value of attribute automatic_namespaces.
17 18 19 |
# File 'lib/imap/backup/cli/transfer.rb', line 17 def automatic_namespaces @automatic_namespaces end |
#config_path ⇒ Object
Returns the value of attribute config_path.
18 19 20 |
# File 'lib/imap/backup/cli/transfer.rb', line 18 def config_path @config_path end |
#destination_delimiter ⇒ Object
Returns the value of attribute destination_delimiter.
19 20 21 |
# File 'lib/imap/backup/cli/transfer.rb', line 19 def destination_delimiter @destination_delimiter end |
#destination_email ⇒ Object (readonly)
Returns the value of attribute destination_email.
20 21 22 |
# File 'lib/imap/backup/cli/transfer.rb', line 20 def destination_email @destination_email end |
#destination_prefix ⇒ Object
Returns the value of attribute destination_prefix.
21 22 23 |
# File 'lib/imap/backup/cli/transfer.rb', line 21 def destination_prefix @destination_prefix end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
22 23 24 |
# File 'lib/imap/backup/cli/transfer.rb', line 22 def @options end |
#reset ⇒ Object
Returns the value of attribute reset.
23 24 25 |
# File 'lib/imap/backup/cli/transfer.rb', line 23 def reset @reset end |
#source_delimiter ⇒ Object
Returns the value of attribute source_delimiter.
24 25 26 |
# File 'lib/imap/backup/cli/transfer.rb', line 24 def source_delimiter @source_delimiter end |
#source_email ⇒ Object (readonly)
Returns the value of attribute source_email.
25 26 27 |
# File 'lib/imap/backup/cli/transfer.rb', line 25 def source_email @source_email end |
#source_prefix ⇒ Object
Returns the value of attribute source_prefix.
26 27 28 |
# File 'lib/imap/backup/cli/transfer.rb', line 26 def source_prefix @source_prefix end |