Class: Vagrant::Action::Box::Package

Inherits:
General::Package show all
Defined in:
lib/vagrant/action/box/package.rb

Overview

Packages a box which has already been unpackaged (such as for the vagrant box repackage command) by leveraging the general packager middleware.

Instance Method Summary collapse

Methods inherited from General::Package

#compress, #copy_include_files, #initialize, #recover, #tar_path

Constructor Details

This class inherits a constructor from Vagrant::Action::General::Package

Instance Method Details

#call(env) ⇒ Object



12
13
14
15
# File 'lib/vagrant/action/box/package.rb', line 12

def call(env)
  env["package.directory"] = env["box_directory"]
  general_call(env)
end

#general_callObject

Alias instead of calling super for testability



11
# File 'lib/vagrant/action/box/package.rb', line 11

alias_method :general_call, :call