ruby/example_code/s3/s3.rb
# Lists all of your available buckets in this AWS Region.
Lists all of your available buckets in this AWS Region.
Lists all of your available buckets in this AWS Region .
def list_my_buckets(s3)
  resp = s3.list_buckets()
  puts "My buckets now are:\n\n"
  resp.buckets.each do |bucket|
    puts bucket.name
  end
end
def list_my_buckets ( s3 ) resp = s3 . list_buckets ( ) puts "My buckets now are:\n\n" resp . buckets . each do | bucket | puts bucket . name end end
Lists all of your available buckets in this AWS Region.
Lists all of your available buckets in this AWS Region .
s3