Skip to content

Commit

Permalink
added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Jun 3, 2016
1 parent dd342c1 commit e611988
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/installation/ssh_key.rb
Expand Up @@ -21,6 +21,7 @@ module Installation
#
# Used to implement the SSH keys importing functionality.
class SshKey
include Yast::Logger
PUBLIC_FILE_SUFFIX = ".pub"

# @return [String] name for the user to identify the key
Expand All @@ -42,6 +43,7 @@ def read_files(priv_filename)
end

def write_files(dir)
log.info "Write SSH keys to #{dir}:\n#{self}"
files.each do |file|
path = File.join(dir, file.filename)
IO.write(path, file.content)
Expand Down

0 comments on commit e611988

Please sign in to comment.