Sha256: d6b5a514d92145d1b1aad5955ab57221b1740037a6e0a4870f1905c9a20c5628

Contents?: true

Size: 441 Bytes

Versions: 7

Compression:

Stored size: 441 Bytes

Contents

module MnoEnterprise
  class Jpi::V1::Admin::AppInstancesController < Jpi::V1::Admin::BaseResourceController

    # DELETE /mnoe/jpi/v1/app_instances/1
    def destroy
      app_instance = MnoEnterprise::AppInstance.find(params[:id])

      if app_instance
        MnoEnterprise::EventLogger.info('app_destroy', current_user.id, 'App destroyed', app_instance)
        app_instance.terminate
      end

      head :accepted
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mno-enterprise-api-3.4.0 app/controllers/mno_enterprise/jpi/v1/admin/app_instances_controller.rb
mno-enterprise-api-3.3.3 app/controllers/mno_enterprise/jpi/v1/admin/app_instances_controller.rb
mno-enterprise-api-3.3.2 app/controllers/mno_enterprise/jpi/v1/admin/app_instances_controller.rb
mno-enterprise-api-3.2.1 app/controllers/mno_enterprise/jpi/v1/admin/app_instances_controller.rb
mno-enterprise-api-3.3.1 app/controllers/mno_enterprise/jpi/v1/admin/app_instances_controller.rb
mno-enterprise-api-3.3.0 app/controllers/mno_enterprise/jpi/v1/admin/app_instances_controller.rb
mno-enterprise-api-3.2.0 app/controllers/mno_enterprise/jpi/v1/admin/app_instances_controller.rb