lib/imap/backup/setup/account.rb in imap-backup-14.4.1 vs lib/imap/backup/setup/account.rb in imap-backup-14.4.3
- old
+ new
@@ -1,22 +1,18 @@
require "imap/backup/setup/account/header"
require "imap/backup/setup/asker"
require "imap/backup/setup/backup_path"
require "imap/backup/setup/connection_tester"
-require "imap/backup/setup/email"
+require "imap/backup/setup/email_changer"
require "imap/backup/setup/folder_chooser"
module Imap; end
module Imap::Backup
class Setup; end
class Setup::Account
- attr_reader :account
- attr_reader :config
- attr_reader :highline
-
def initialize(config, account, highline)
@account = account
@config = config
@highline = highline
end
@@ -34,10 +30,14 @@
end
end
private
+ attr_reader :account
+ attr_reader :config
+ attr_reader :highline
+
def create_menu
highline.choose do |menu|
header menu
modify_email menu
modify_password menu
@@ -60,10 +60,10 @@
Setup::Account::Header.new(menu: menu, account: account).run
end
def modify_email(menu)
menu.choice("modify email") do
- Setup::Email.new(account: account, config: config).run
+ Setup::EmailChanger.new(account: account, config: config).run
end
end
def modify_password(menu)
menu.choice("modify password") do