Class: BigShift::Cleaner

Inherits:
Object
  • Object
show all
Defined in:
lib/bigshift/cleaner.rb

Instance Method Summary collapse

Constructor Details

#initialize(s3_resource, cs_service, options = {}) ⇒ Cleaner

Returns a new instance of Cleaner.



3
4
5
6
7
# File 'lib/bigshift/cleaner.rb', line 3

def initialize(s3_resource, cs_service, options={})
  @s3_resource = s3_resource
  @cs_service = cs_service
  @logger = options[:logger] || NullLogger.new
end

Instance Method Details

#cleanup(unload_manifest, cs_bucket_name) ⇒ Object



9
10
11
12
13
# File 'lib/bigshift/cleaner.rb', line 9

def cleanup(unload_manifest, cs_bucket_name)
  cleanup_s3(unload_manifest)
  cleanup_cs(cs_bucket_name, unload_manifest)
  nil
end