Class: NauktisUtils::Duplicate::DeletingStrategy::Simple

Inherits:
BaseDeletingStrategy show all
Defined in:
lib/nauktis_utils/duplicate.rb

Direct Known Subclasses

Safe

Instance Method Summary collapse

Methods included from Logging

#logger, logger, logger=

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