cloudfoundry/cloud_controller_ng

View on GitHub
app/actions/deployment_delete.rb

Summary

Maintainability
A
0 mins
Test Coverage
module VCAP::CloudController
  class DeploymentDelete
    class << self
      def delete(deployments)
        deployments.delete
      end

      def delete_for_app(guid)
        DeploymentModel.where(app_guid: guid).delete
      end
    end
  end
end