Class: Imap::Backup::CLI::Mirror
- Inherits:
-
Thor
- Object
- Thor
- Imap::Backup::CLI::Mirror
- Includes:
- Helpers, Thor::Actions
- Defined in:
- lib/imap/backup/cli/mirror.rb
Instance Attribute Summary collapse
-
#config_path ⇒ Object
readonly
Returns the value of attribute config_path.
-
#destination_delimiter ⇒ Object
readonly
Returns the value of attribute destination_delimiter.
-
#destination_email ⇒ Object
readonly
Returns the value of attribute destination_email.
-
#destination_prefix ⇒ Object
readonly
Returns the value of attribute destination_prefix.
-
#source_delimiter ⇒ Object
readonly
Returns the value of attribute source_delimiter.
-
#source_email ⇒ Object
readonly
Returns the value of attribute source_email.
-
#source_prefix ⇒ Object
readonly
Returns the value of attribute source_prefix.
Instance Method Summary collapse
-
#initialize(source_email, destination_email, config: nil, destination_delimiter: "/", destination_prefix: "", source_delimiter: "/", source_prefix: "") ⇒ Mirror
constructor
A new instance of Mirror.
Methods included from Helpers
#account, included, #load_config, #options, #requested_accounts
Constructor Details
#initialize(source_email, destination_email, config: nil, destination_delimiter: "/", destination_prefix: "", source_delimiter: "/", source_prefix: "") ⇒ Mirror
Returns a new instance of Mirror.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/imap/backup/cli/mirror.rb', line 19 def initialize( source_email, destination_email, config: nil, destination_delimiter: "/", destination_prefix: "", source_delimiter: "/", source_prefix: "" ) super([]) @destination_delimiter = destination_delimiter @destination_email = destination_email @destination_prefix = destination_prefix @config_path = config @source_delimiter = source_delimiter @source_email = source_email @source_prefix = source_prefix end |
Instance Attribute Details
#config_path ⇒ Object (readonly)
Returns the value of attribute config_path.
14 15 16 |
# File 'lib/imap/backup/cli/mirror.rb', line 14 def config_path @config_path end |
#destination_delimiter ⇒ Object (readonly)
Returns the value of attribute destination_delimiter.
11 12 13 |
# File 'lib/imap/backup/cli/mirror.rb', line 11 def destination_delimiter @destination_delimiter end |
#destination_email ⇒ Object (readonly)
Returns the value of attribute destination_email.
12 13 14 |
# File 'lib/imap/backup/cli/mirror.rb', line 12 def destination_email @destination_email end |
#destination_prefix ⇒ Object (readonly)
Returns the value of attribute destination_prefix.
13 14 15 |
# File 'lib/imap/backup/cli/mirror.rb', line 13 def destination_prefix @destination_prefix end |
#source_delimiter ⇒ Object (readonly)
Returns the value of attribute source_delimiter.
15 16 17 |
# File 'lib/imap/backup/cli/mirror.rb', line 15 def source_delimiter @source_delimiter end |
#source_email ⇒ Object (readonly)
Returns the value of attribute source_email.
16 17 18 |
# File 'lib/imap/backup/cli/mirror.rb', line 16 def source_email @source_email end |
#source_prefix ⇒ Object (readonly)
Returns the value of attribute source_prefix.
17 18 19 |
# File 'lib/imap/backup/cli/mirror.rb', line 17 def source_prefix @source_prefix end |