core/rails/app/controllers/deployments_controller.rb
# PUT
# calls redeploy on all nodes in deployment
PUT
calls redeploy on all nodes in deployment
PUT calls redeploy on all nodes in deployment
def redeploy
    @deployment = find_key_cap(model,
                               params[:id] || params[:name] || params[:deployment_id],
                               cap("REDEPLOY"))
    @deployment.nodes.visible(cap("REDEPLOY","NODE"),@current_user.id).each { |n| n.redeploy! }
    render api_show @deployment
  end
def redeploy @deployment = find_key_cap ( model , params [ :id ] || params [ :name ] || params [ :deployment_id ] , cap ( "REDEPLOY" ) ) @deployment . nodes . visible ( cap ( "REDEPLOY" , "NODE" ) , @current_user . id ) . each { | n | n . redeploy! } render api_show @deployment end
PUT
calls redeploy on all nodes in deployment
PUT calls redeploy on all nodes in deployment
# Not in a transaction due to redeploy call.