Class: Filey::DataSources::AwsSdkS3

Inherits:
DataSource show all
Defined in:
lib/filey-diff/data-sources/aws_sdk_s3.rb

Instance Method Summary collapse

Methods inherited from DataSource

#get_fileys

Constructor Details

#initialize(s3_bucket, config = { :concurrency_level => DEFAULT_CONCURRENCY_LEVEL }, &block) ⇒ AwsSdkS3

Returns a new instance of AwsSdkS3.



4
5
6
7
8
# File 'lib/filey-diff/data-sources/aws_sdk_s3.rb', line 4

def initialize(s3_bucket, config = { :concurrency_level => DEFAULT_CONCURRENCY_LEVEL }, &block)
  @s3_bucket = s3_bucket
  @config = config
  @when_filey_loaded = lambda { |filey| block.call filey } if block
end