image/files/boot/lib/ruby/boot/ssh/auth.rb
def processables
    # @formatter:off
    Dir["#{self.path}/{.[^\.]*,*}"]
      .sort
      .map { |f| Pathname.new(f) }.keep_if(&:file?).map do |file|
      [file, Etc.getpwnam(file.basename.to_s)]
    rescue ArgumentError => e
      self.errors.push(e)
    end.compact.keep_if { |_file, user| user.respond_to?(:dir) }.to_h
    # @formatter:off
  end
# Get auth files and users.
#
# @return [Hash{Pathname => Struct}]
Get auth files and users.
Get auth files and users .
def processables
    Dir["#{self.path}/{.[^\.]*,*}"]
      .sort
      .map { |f| Pathname.new(f) }.keep_if(&:file?).map do |file|
      [file, Etc.getpwnam(file.basename.to_s)]
    rescue ArgumentError => e
      self.errors.push(e)
    end.compact.keep_if { |_file, user| user.respond_to?(:dir) }.to_h
  end
def processables Dir [ "#{self.path}/{.[^\.]*,*}" ] . sort . map { | f | Pathname . new ( f ) } . keep_if ( & :file? ) . map do | file | [ file , Etc . getpwnam ( file . basename . to_s ) ] rescue ArgumentError => e self . errors . push ( e ) end . compact . keep_if { | _file , user | user . respond_to? ( :dir ) } . to_h end
Get auth files and users.
Get auth files and users .
# @formatter:off # @formatter:off
None
Hash{Pathname => Struct}