Sha256: 8be3f1122d8aaf8a1011a825d1dbee8e49a4300b95174a42435f34f54a794c5c
Contents?: true
Size: 497 Bytes
Versions: 13
Compression:
Stored size: 497 Bytes
Contents
require 'log4r' module VagrantPlugins module OVirtProvider module Action class SuspendVM def initialize(app, env) @logger = Log4r::Logger.new("vagrant_ovirt3::action::suspend_vm") @app = app end def call(env) env[:ui].info(I18n.t("vagrant_ovirt3.suspend_vm")) machine = env[:ovirt_compute].servers.get(env[:machine].id.to_s) machine.suspend @app.call(env) end end end end end
Version data entries
13 entries across 13 versions & 1 rubygems