Class: BigShift::Cleaner
- Inherits:
-
Object
- Object
- BigShift::Cleaner
- Defined in:
- lib/bigshift/cleaner.rb
Instance Method Summary collapse
- #cleanup(unload_manifest, cs_bucket_name) ⇒ Object
-
#initialize(s3_resource, cs_service, options = {}) ⇒ Cleaner
constructor
A new instance of Cleaner.
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, ={}) @s3_resource = s3_resource @cs_service = cs_service @logger = [: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 |