Class: Imap::Backup::CLI
- Inherits:
-
Thor
- Object
- Thor
- Imap::Backup::CLI
show all
- Includes:
- Helpers
- Defined in:
- lib/imap/backup/cli.rb,
lib/imap/backup/cli/accounts.rb
Defined Under Namespace
Modules: Helpers
Classes: Accounts, Backup, Folders, Local, Restore, Setup, Status, Utils
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Helpers
#account, #connection, #each_connection, #symbolized
Class Method Details
.accounts_option ⇒ Object
26
27
28
29
30
31
32
33
|
# File 'lib/imap/backup/cli.rb', line 26
def self.accounts_option
method_option(
"accounts",
type: :string,
banner: "a comma-separated list of accounts (defaults to all configured accounts)",
aliases: ["-a"]
)
end
|
.exit_on_failure? ⇒ Boolean
22
23
24
|
# File 'lib/imap/backup/cli.rb', line 22
def self.exit_on_failure?
true
end
|
Instance Method Details
#backup ⇒ Object
44
45
46
|
# File 'lib/imap/backup/cli.rb', line 44
def backup
Backup.new(symbolized(options)).run
end
|
#folders ⇒ Object
56
57
58
|
# File 'lib/imap/backup/cli.rb', line 56
def folders
Folders.new(symbolized(options)).run
end
|
#restore ⇒ Object
67
68
69
|
# File 'lib/imap/backup/cli.rb', line 67
def restore
Restore.new(symbolized(options)).run
end
|
#setup ⇒ Object
76
77
78
|
# File 'lib/imap/backup/cli.rb', line 76
def setup
Setup.new.run
end
|
#status ⇒ Object
85
86
87
|
# File 'lib/imap/backup/cli.rb', line 85
def status
Status.new(symbolized(options)).run
end
|