Sha256: 6371d098f2e288ce1244670ffa9f185e5d36d4d0cd784d12b0cc6e0aa010acfe

Contents?: true

Size: 421 Bytes

Versions: 2

Compression:

Stored size: 421 Bytes

Contents

# encoding: utf-8
module PasswordChanger
  module Printers
    class Csv
      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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
password_changer-0.0.4 lib/password_changer/printers/csv.rb
password_changer-0.0.3 lib/password_changer/printers/csv.rb