kanevk / kanevk/dalek

Add DSL for the deletion

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Ruby
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Add DSL feature for the deleting service.

Currently the deletions are described through the `Dalek::Exterminate.deletion_tree` method via data structure.

It will be nice to have DSL build over the deletion tree structure.

### Example
```ruby
class DeleteUser
include Dalek::Exterminate

delete User do
before { ... }

delete :posts do
delete :comments

after { ... }
end

delete :comments do
skip :images
delete :tags
end

handle(:avatars) { ... }
end
end

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.