Sha256: 15618bae847888f332b36fcf38a7cfa91108f567c3a8d1d3224bb5c1e291564c
Contents?: true
Size: 529 Bytes
Versions: 54
Compression:
Stored size: 529 Bytes
Contents
require 'lhj/helper/oss_helper' require 'terminal-table' module Lhj class Command class OSS < Command class List < OSS def handle objects = Lhj::OSS::Helper.instance.list rows = [] objects.each_with_index do |o, i| path = "#{i}.#{Lhj::OSS::Helper.instance.url_path}/#{o.key}" rows << [path] end table = Terminal::Table.new title: 'OSS List', headings: ['URL'], rows: rows puts table end end end end end
Version data entries
54 entries across 54 versions & 1 rubygems