Class: Lhj::Command::OSS::List

Inherits:
Lhj::Command::OSS show all
Defined in:
lib/lhj/command/oss/list.rb

Instance Method Summary collapse

Instance Method Details

#runObject



9
10
11
12
13
14
15
# File 'lib/lhj/command/oss/list.rb', line 9

def run
  objects = Lhj::OSS::Helper.instance.list
  objects.each do |o|
    path = "#{Lhj::OSS::Helper.instance.url_path}/#{o.key}"
    puts path
  end
end