mirror of
https://github.com/minio/mc.git
synced 2025-11-13 12:22:45 +03:00
Also update documentation, to use subdomains for buckets as minio server starts supporting subdomains.
11 lines
309 B
Ruby
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
|