Remove unused middleware sequences related to repackaging

This commit is contained in:
Mitchell Hashimoto 2012-07-10 22:29:08 -07:00
parent 23dfc45df2
commit bcd1304ef4
3 changed files with 0 additions and 27 deletions

View File

@ -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

View File

@ -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

View File

@ -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