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