Class: Sem::Views::Files
Class Method Summary collapse
Methods inherited from Base
org_names_not_matching, print_table
Class Method Details
.list(files) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/sem/views/files.rb', line 3 def self.list(files) header = ["ID", "PATH", "ENCRYPTED?"] body = files.map do |file| [file.id, "/home/runner/#{file.path}", file.encrypted?] end print_table([header, *body]) end |