From 28a6beaa56cc2fb56e3ee84ce2865d79af0b6f55 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 23 Jan 2014 13:27:50 -0800 Subject: [PATCH] commands/box: can constrain the version --- plugins/commands/box/command/add.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/commands/box/command/add.rb b/plugins/commands/box/command/add.rb index d7b0e79e2..3d32596bf 100644 --- a/plugins/commands/box/command/add.rb +++ b/plugins/commands/box/command/add.rb @@ -36,6 +36,10 @@ module VagrantPlugins options[:provider] = p end + o.on("--version VALUE", String, "Constrain version of the added box") do |v| + options[:version] = v + end + o.separator "" o.separator "The options below only apply if you're adding a box file directly," o.separator "and not using a Vagrant server or a box structured like 'user/box':" @@ -72,6 +76,7 @@ module VagrantPlugins box_url: url, box_name: options[:name], box_provider: options[:provider], + box_version: options[:version], box_checksum_type: options[:checksum_type], box_checksum: options[:checksum], box_clean: options[:clean],