Converter should call provider method for generating additional files
Closed this issue · 3 comments
sciurus commented
Some providers require additional files that are specific to them, e.g. vagrant-kvm requires box.xml. I need to make it possible to implement this in a provider.
miurahr commented
Does this means follows?
- Mutate don't have provider specific logics.
- Each provider keeps utility methods for mutate to call.
In vagarnt-kvm project, we discuss that we can move such methods to other plugin e.g. mutate and simplivy provider inside.
sciurus commented
Mutate does have a place for provider-specific logic. When I said "provider" I meant a provider class that is a part of vagrant-mutate. Sorry for the confusion.
Basically, there
- is a Box class that represents generic aspects of a box
- are Provider classes that represent specific aspects of providers
- is a Converter class that includes generic conversion logic and calls provider classes for more specific logic
I'm glad you're interested in using vagrant-mutate to simplify vagrant-kvm. I'll try to spend some time this weekend figuring out and implementing the changes needed to make it easy for you.
sciurus commented
This is done in the kvm branch.