Method: Stax::Cmd::S3#reap

Defined in:
lib/stax/mixin/s3.rb

#reapObject



70
71
72
73
74
75
76
77
# File 'lib/stax/mixin/s3.rb', line 70

def reap
  debug("Deleting buckets tagged by #{my.stack_name}")
  stack_tagged_buckets.each do |b|
    if yes?("Delete bucket and contents #{b.name}?", :yellow)
      ::Aws::S3::Bucket.new(b.name).delete!
    end
  end
end