Sha256: ac4af43527825098631f9f42d9798f2fea92035ae3d1523a725a0c8201ac6db5
Contents?: true
Size: 714 Bytes
Versions: 63
Compression:
Stored size: 714 Bytes
Contents
module VagrantPlugins module DockerProvider module Action class Destroy def initialize(app, env) @app = app end def call(env) env[:ui].info I18n.t("docker_provider.messages.destroying") machine = env[:machine] driver = machine.provider.driver # If we have a build image, store that image_file = machine.data_dir.join("docker_build_image") image = nil if image_file.file? image = image_file.read.chomp end env[:build_image] = image driver.rm(machine.id) machine.id = nil @app.call(env) end end end end end
Version data entries
63 entries across 56 versions & 8 rubygems