Closed wallrj closed 10 years ago
This blocks https://github.com/ClusterHQ/flocker/issues/33
This has been split into two parts.
This ticket is about implementing the model_from_config
skeleton and the parsing of application_configuration
deployment_configuration
https://github.com/ClusterHQ/flocker/compare/flocker-cli-deploy-19#diff-1 outlines a function
model_from_config
which accepts an application_config and a deployment_config dictionary and returns aDeployment
object populated withApplication
sDockerImages
etc.This ticket is about implementing that function and all the supporting model types. Also implementing some error checking for errors such as:
Then in followup tickets we can modify
flocker.cli.script.DeployOptions
andflocker.node.script.ChangeStateOptions
to call that function and convert any validation exceptions into meaningful usage errors on the command line.