Sha256: 97c6748febd037a9ec671249ba5830587069e7e205e1b4541bd616bd11c5cda5
Contents?: true
Size: 626 Bytes
Versions: 24
Compression:
Stored size: 626 Bytes
Contents
# frozen_string_literal: true require 'log4r' require 'securerandom' require 'digest/md5' module VagrantPlugins module ProviderZone module Action # This will destroy the zone class Destroy def initialize(app, _env) @logger = Log4r::Logger.new('vagrant_zones::action::import') @app = app end def call(env) @machine = env[:machine] @driver = @machine.provider.driver @driver.halt(env[:ui]) @driver.destroy(env[:ui]) @driver.delete_dataset(env[:ui]) @app.call(env) end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems