Class: PasswordChanger::Printers::Plain

Inherits:
Object
  • Object
show all
Defined in:
lib/password_changer/printers/plain.rb

Instance Method Summary collapse

Instance Method Details

#output(users) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/password_changer/printers/plain.rb', line 5

def output(users)
  PasswordChanger.logger.info "You find the changed user accounts below. If an error occured during password change, the old password is given."

  puts 'name old_password'

  users.each do |user|
    printf "%s %s\n", user.name, user.new_password
  end
end