Class: Imap::Backup::CLI::Migrate

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source_email, destination_email, destination_prefix: "", reset: false, source_prefix: "") ⇒ Migrate

Returns a new instance of Migrate.


13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'lib/imap/backup/cli/migrate.rb', line 13

def initialize(
  source_email,
  destination_email,
  destination_prefix: "",
  reset: false,
  source_prefix: ""
)
  super([])
  @destination_email = destination_email
  @destination_prefix = destination_prefix
  @reset = reset
  @source_email = source_email
  @source_prefix = source_prefix
end

Instance Attribute Details

#destination_emailObject (readonly)

Returns the value of attribute destination_email.


7
8
9
# File 'lib/imap/backup/cli/migrate.rb', line 7

def destination_email
  @destination_email
end

#destination_prefixObject (readonly)

Returns the value of attribute destination_prefix.


8
9
10
# File 'lib/imap/backup/cli/migrate.rb', line 8

def destination_prefix
  @destination_prefix
end

#resetObject (readonly)

Returns the value of attribute reset.


9
10
11
# File 'lib/imap/backup/cli/migrate.rb', line 9

def reset
  @reset
end

#source_emailObject (readonly)

Returns the value of attribute source_email.


10
11
12
# File 'lib/imap/backup/cli/migrate.rb', line 10

def source_email
  @source_email
end

#source_prefixObject (readonly)

Returns the value of attribute source_prefix.


11
12
13
# File 'lib/imap/backup/cli/migrate.rb', line 11

def source_prefix
  @source_prefix
end