Sha256: 56c1a19ce6311e1cb5de82d9a05f3472097f0861c8eb85a4357e3c9a3c4ce11c
Contents?: true
Size: 548 Bytes
Versions: 5
Compression:
Stored size: 548 Bytes
Contents
require 'awsum/s3/parsers/bucket_parser' module Awsum class S3 class Bucket attr_reader :name, :creation_date def initialize(s3, name, creation_date = nil) @s3 = s3 @name = name @creation_date = creation_date end # Delete this Bucket def delete @s3.delete_bucket(@name) end # Delete this Bucket, recursively deleting all keys first def delete! @s3.keys(@name).each do |key| key.delete end delete end end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
awsum-0.5.4 | lib/awsum/s3/bucket.rb |
awsum-0.5.3 | lib/awsum/s3/bucket.rb |
awsum-0.5.2 | lib/awsum/s3/bucket.rb |
awsum-0.5.1 | lib/awsum/s3/bucket.rb |
awsum-0.5 | lib/awsum/s3/bucket.rb |