Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add DSL for the deletion #3

Open
kanevk opened this issue Oct 23, 2018 · 0 comments
Open

Add DSL for the deletion #3

kanevk opened this issue Oct 23, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@kanevk
Copy link
Owner

kanevk commented Oct 23, 2018

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

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
@kanevk kanevk added the enhancement New feature or request label Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant