Module: Jets::Event::S3

Extended by:
S3
Included in:
S3
Defined in:
lib/jets/event/s3.rb

Constant Summary collapse

@@registry =
{}

Instance Method Summary collapse

Instance Method Details

#any?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/jets/event/s3.rb', line 10

def any?
  !@@registry.empty?
end

#create_s3_event_bucketsObject



14
15
16
17
18
19
# File 'lib/jets/event/s3.rb', line 14

def create_s3_event_buckets
  buckets = @@registry.keys
  buckets.each do |bucket|
    Jets::AwsServices::S3Bucket.ensure_exists(bucket)
  end
end