Sha256: 9b6a8ff277afc132ba39c2088f0a509ed6b23933db34a060fd5df62a283d14c5
Contents?: true
Size: 742 Bytes
Versions: 40
Compression:
Stored size: 742 Bytes
Contents
require 'vagrant/action/general/package' module Vagrant module Action module VM # A subclass of {General::Package} which simply makes sure that # the package directory is set to the directory which the VM # was exported to. class Package < General::Package # Doing this so that we can test that the parent is properly # called in the unit tests. alias_method :general_call, :call def call(env) # Just match up a couple environmental variables so that # the superclass will do the right thing. Then, call the # superclass env["package.directory"] = env["export.temp_dir"] general_call(env) end end end end end
Version data entries
40 entries across 40 versions & 6 rubygems