toDeploymentCommandName method
Implementation
DeploymentCommandName toDeploymentCommandName() {
switch (this) {
case 'install_dependencies':
return DeploymentCommandName.installDependencies;
case 'update_dependencies':
return DeploymentCommandName.updateDependencies;
case 'update_custom_cookbooks':
return DeploymentCommandName.updateCustomCookbooks;
case 'execute_recipes':
return DeploymentCommandName.executeRecipes;
case 'configure':
return DeploymentCommandName.configure;
case 'setup':
return DeploymentCommandName.setup;
case 'deploy':
return DeploymentCommandName.deploy;
case 'rollback':
return DeploymentCommandName.rollback;
case 'start':
return DeploymentCommandName.start;
case 'stop':
return DeploymentCommandName.stop;
case 'restart':
return DeploymentCommandName.restart;
case 'undeploy':
return DeploymentCommandName.undeploy;
}
throw Exception('$this is not known in enum DeploymentCommandName');
}