Class: Imap::Backup::CLI::Setup

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

Overview

Runs the menu-driven setup program

Instance Method Summary collapse

Methods included from Helpers

#account, included, #load_config, #requested_accounts

Constructor Details

#initialize(options) ⇒ Setup

Returns a new instance of Setup.



16
17
18
19
# File 'lib/imap/backup/cli/setup.rb', line 16

def initialize(options)
  super([])
  @options = options
end

Instance Method Details

#runvoid

This method returns an undefined value.



23
24
25
26
27
28
# File 'lib/imap/backup/cli/setup.rb', line 23

no_commands do
  def run
    config = load_config(**options, require_exists: false)
    Setup.new(config: config).run
  end
end