Module: S3DataPacker

Defined in:
lib/s3_data_packer.rb,
lib/s3_data_packer/queue.rb,
lib/s3_data_packer/bucket.rb,
lib/s3_data_packer/packer.rb,
lib/s3_data_packer/summary.rb,
lib/s3_data_packer/version.rb,
lib/s3_data_packer/json_batch.rb,
lib/s3_data_packer/thread_set.rb,
lib/s3_data_packer/configuration.rb,
lib/s3_data_packer/sources/object.rb,
lib/s3_data_packer/targets/object.rb,
lib/s3_data_packer/sources/s3_bucket.rb,
lib/s3_data_packer/targets/s3_bucket.rb,
lib/s3_data_packer/filename_generator.rb

Defined Under Namespace

Modules: Sources, Targets Classes: Bucket, Configuration, FilenameGenerator, JSONBatch, Packer, Queue, Summary, ThreadSet

Constant Summary collapse

VERSION =
"0.2.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject (readonly) Also known as: config

Returns the value of attribute configuration.



25
26
27
# File 'lib/s3_data_packer.rb', line 25

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



33
34
35
# File 'lib/s3_data_packer.rb', line 33

def configure
  yield configuration
end

.loggerObject



37
38
39
# File 'lib/s3_data_packer.rb', line 37

def logger
  @logger ||= config.logger || Logger.new('log/s3_data_packer.log')
end