Sha256: 1a77a0f6d74f1ff28708af7bb9880697dbbdb4df581660c9255e0881cd18eb82
Contents?: true
Size: 522 Bytes
Versions: 40
Compression:
Stored size: 522 Bytes
Contents
require 'fileutils' module Vagrant module Action module Box class Destroy def initialize(app, env) @app = app @env = env end def call(env) # Delete the existing box env[:ui].info I18n.t("vagrant.actions.box.destroy.destroying", :name => env[:box_name]) FileUtils.rm_rf(env[:box_directory]) # Reload the box collection env[:box_collection].reload! @app.call(env) end end end end end
Version data entries
40 entries across 40 versions & 6 rubygems