diff --git a/lib/vagrant/action.rb b/lib/vagrant/action.rb index 93e41d776..8b816ae3d 100644 --- a/lib/vagrant/action.rb +++ b/lib/vagrant/action.rb @@ -10,7 +10,6 @@ module Vagrant module Box autoload :Add, 'vagrant/action/box/add' autoload :Download, 'vagrant/action/box/download' - autoload :Package, 'vagrant/action/box/package' autoload :Verify, 'vagrant/action/box/verify' end diff --git a/lib/vagrant/action/box/package.rb b/lib/vagrant/action/box/package.rb deleted file mode 100644 index 68b1dab96..000000000 --- a/lib/vagrant/action/box/package.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'vagrant/action/general/package' - -module Vagrant - module Action - module Box - # Packages a box which has already been unpackaged (such as - # for the `vagrant box repackage` command) by leveraging the - # general packager middleware. - class Package < General::Package - # Alias instead of calling super for testability - alias_method :general_call, :call - def call(env) - env["package.directory"] = env["box_directory"] - general_call(env) - end - end - end - end -end diff --git a/lib/vagrant/action/builtin.rb b/lib/vagrant/action/builtin.rb index 03fe1679d..b047ef43e 100644 --- a/lib/vagrant/action/builtin.rb +++ b/lib/vagrant/action/builtin.rb @@ -151,13 +151,6 @@ module Vagrant use Box::Verify end end - - # box_repackage - Repackages a box. - register(:box_repackage) do - Builder.new do - use Box::Package - end - end end end end