class VagrantPlugins::OVirtProvider::Action::SuspendVM
Public Class Methods
new(app, env)
click to toggle source
# File lib/vagrant-ovirt4/action/suspend_vm.rb, line 7 def initialize(app, env) @logger = Log4r::Logger.new("vagrant_ovirt4::action::suspend_vm") @app = app end
Public Instance Methods
call(env)
click to toggle source
# File lib/vagrant-ovirt4/action/suspend_vm.rb, line 12 def call(env) env[:ui].info(I18n.t("vagrant_ovirt4.suspend_vm")) machine = env[:vms_service].vm_service(env[:machine].id) machine.suspend @app.call(env) end