mirror of
https://github.com/minio/mc.git
synced 2025-11-13 12:22:45 +03:00
Bring old documentation back
This commit is contained in:
10
docs/sdks/ruby/example-list-buckets.rb
Normal file
10
docs/sdks/ruby/example-list-buckets.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user