Sha256: 73ff0b5b678dd2529057943686601669ec313a0e6473716ebcf82e852c9dd2bc
Contents?: true
Size: 618 Bytes
Versions: 5
Compression:
Stored size: 618 Bytes
Contents
require 'log4r' module VagrantPlugins module Libvirt module Action class DestroyDomain def initialize(app, env) @logger = Log4r::Logger.new("vagrant_libvirt::action::destroy_domain") @app = app end def call(env) # Destroy the server, remove the tracking ID env[:ui].info(I18n.t("vagrant_libvirt.destroy_domain")) domain = env[:libvirt_compute].servers.get(env[:machine].id.to_s) domain.destroy(:destroy_volumes => true) env[:machine].id = nil @app.call(env) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems