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

Apply command pattern to VM creation process #37

Open
ShimShtein opened this issue Aug 11, 2019 · 0 comments
Open

Apply command pattern to VM creation process #37

ShimShtein opened this issue Aug 11, 2019 · 0 comments

Comments

@ShimShtein
Copy link
Member

We should use a "do - undo" command pattern for VM creation. Right now we don't have a way to trace which sub-resources are already created, and need to be destroyed in case of an error.

Resources:

(https://medium.com/@nakshtra17/ruby-design-pattern-command-method-3d1e3f41d39d)
(https://www.freecodecamp.org/news/design-patterns-command-and-concierge-in-life-and-ruby-aab9815817ea/)
(https://refactoring.guru/design-patterns/command/ruby/example)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant