Remove unused middleware sequences related to repackaging
This commit is contained in:
parent
23dfc45df2
commit
bcd1304ef4
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue