lib/vagrant-parallels/action/package.rb
# Doing this so that we can test that the parent is properly
# called in the unit tests.
Doing this so that we can test that the parent is properly
called in the unit tests.
Doing this so that we can test that the parent is properly called in the unit tests .
def call(env)
          @temp_dir = env[:tmp_path].join(Time.now.to_i.to_s)
          env['export.temp_dir'] = @temp_dir
          FileUtils.mkpath(env['export.temp_dir'])
          env['package.directory'] = env['export.temp_dir']
          general_call(env)
          clean_temp_dir
        end
def call ( env ) @temp_dir = env [ :tmp_path ] . join ( Time . now . to_i . to_s ) env [ 'export.temp_dir' ] = @temp_dir FileUtils . mkpath ( env [ 'export.temp_dir' ] ) env [ 'package.directory' ] = env [ 'export.temp_dir' ] general_call ( env ) clean_temp_dir end
Doing this so that we can test that the parent is properly
called in the unit tests.
Doing this so that we can test that the parent is properly called in the unit tests .
# Setup the temporary directory # Just match up a couple environmental variables so that # the superclass will do the right thing. Then, call the # superclass # Always call recover to clean up the temp dir
env