ManageIQ/manageiq-automation_engine

View on GitHub
lib/miq_automation_engine/service_models/miq_ae_service_snapshot.rb

Summary

Maintainability
A
0 mins
Test Coverage
module MiqAeMethodService
  class MiqAeServiceSnapshot < MiqAeServiceModelBase
    expose :current?
    expose :get_current_snapshot

    def revert_to
      vm_or_template.revert_to_snapshot(id)
    end

    def remove
      vm_or_template.remove_snapshot(id)
    end
  end
end