From 1443d634c7b6ee46b777944da84f58dce787e7e5 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Fri, 4 Oct 2013 21:29:52 -0300 Subject: [PATCH] core: Write box information after download --- lib/vagrant/action/builtin/write_box_info.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/vagrant/action/builtin/write_box_info.rb b/lib/vagrant/action/builtin/write_box_info.rb index ebf11cfb9..a8bcd30aa 100644 --- a/lib/vagrant/action/builtin/write_box_info.rb +++ b/lib/vagrant/action/builtin/write_box_info.rb @@ -11,10 +11,13 @@ module Vagrant end def call(env) - box_url = env[:box_url] - box_added = env[:box_added] + box_url = env[:box_url] + box_added = env[:box_added] + box_state_file = env[:box_state_file] - # TODO: Persist box_url / provider / datetime + # Mark that we downloaded the box + @logger.info("Adding the box to the state file...") + box_state_file.add_box(box_added, box_url) @app.call(env) end