Sha256: 552161e5ee65ad7214a3a4ac06734cdc0d43370d3a92b0e370a5fca834871169
Contents?: true
Size: 684 Bytes
Versions: 3
Compression:
Stored size: 684 Bytes
Contents
module Vagrant class Action module VM class CheckBox def initialize(app, env) @app = app end def call(env) box_name = env["config"].vm.box raise Errors::BoxNotSpecified if !box_name if !env.env.boxes.find(box_name) box_url = env["config"].vm.box_url raise Errors::BoxSpecifiedDoesntExist, :name => box_name if !box_url env.ui.info I18n.t("vagrant.actions.vm.check_box.not_found", :name => box_name) Vagrant::Box.add(env.env, box_name, box_url) env["boxes"].reload! end @app.call(env) end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
vagrantup-0.6.9 | lib/vagrant/action/vm/check_box.rb |
vagrant-0.7.0.beta | lib/vagrant/action/vm/check_box.rb |
vagrant-0.6.9 | lib/vagrant/action/vm/check_box.rb |