Class: NauktisUtils::Duplicate::DeletingStrategy::Simple
- Inherits:
-
BaseDeletingStrategy
- Object
- BaseDeletingStrategy
- NauktisUtils::Duplicate::DeletingStrategy::Simple
- Defined in:
- lib/nauktis_utils/duplicate.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods included from Logging
Instance Method Details
#delete_duplicate(duplicate, original) ⇒ Object
112 113 114 115 |
# File 'lib/nauktis_utils/duplicate.rb', line 112 def delete_duplicate(duplicate, original) logger.info "Deleting #{duplicate}, duplicate of #{original}" File.delete(duplicate) end |