lib/cloud_controller/deployment_updater/dispatcher.rb
Method dispatch
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def dispatch
logger = Steno.logger('cc.deployment_updater.update')
logger.info('run-deployment-update')
deployments_to_scale = DeploymentModel.where(state: DeploymentModel::DEPLOYING_STATE).all