1
0
mirror of https://github.com/minio/mc.git synced 2025-11-13 12:22:45 +03:00
Files
mc/docs/sdks/ruby/example-list-buckets.rb
2015-04-28 11:03:34 -07:00

11 lines
309 B
Ruby

#!/usr/bin/env ruby
require 'aws-sdk'
s3 = Aws::S3::Client.new(endpoint: "http://localhost:9000/",
require_https_for_sse_cpk: false,
region: "minio")
resp = s3.list_buckets
resp.buckets.each do |bucket|
puts "#{bucket.name} => #{bucket.creation_date}"
end