-
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving #create_server logic from request to model
The attribute #template_name doesn't exist anymore since it value was making the save method to have 2 different behaviors. Now, to create a vm from scratch, you can simple call save on a new vm record. And to create from a template, it is necessary to call all the methods (clone, provision, start) on the template object. This change make it a bit more verbose but gives more control over the flow, like use a cdrom as install-repository without the need to have another template.
- Loading branch information
1 parent
6ac0480
commit dbde698
Showing
4 changed files
with
69 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters