Sha256: b6aaed8dd19f3a076998c849e1200304e92f438b2add5e521272b38994d4f38f
Contents?: true
Size: 555 Bytes
Versions: 3
Compression:
Stored size: 555 Bytes
Contents
# frozen_string_literal: true require 'log4r' require 'securerandom' require 'digest/md5' module VagrantPlugins module ProviderLocal module Action # This will destroy the instance class Destroy def initialize(app, _env) @logger = Log4r::Logger.new('vagrant_local::action::import') @app = app end def call(env) @machine = env[:machine] @driver = @machine.provider.driver @driver.destroy(env[:ui]) @app.call(env) end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-local-0.0.3 | lib/vagrant-local/action/destroy.rb |
vagrant-local-0.0.2 | lib/vagrant-local/action/destroy.rb |
vagrant-local-0.0.1 | lib/vagrant-local/action/destroy.rb |