Class: Imap::Backup::CLI::Single

Inherits:
Thor
  • Object
show all
Includes:
Helpers
Defined in:
lib/imap/backup/cli/single.rb,
lib/imap/backup/cli/single/backup.rb

Overview

Processes parameters to run a backup via command-line parameters (without using a configuration file)

Defined Under Namespace

Classes: Backup

Instance Method Summary collapse

Methods included from Helpers

#account, included, #load_config, #options, #requested_accounts

Instance Method Details

#backupvoid

This method returns an undefined value.

Launches the backup procedure



180
181
182
183
184
# File 'lib/imap/backup/cli/single.rb', line 180

def backup
  non_logging_options = Imap::Backup::Logger.setup_logging(options)
  direct = Backup.new(non_logging_options)
  direct.run
end