Initial attempt at refactoring commands out into evented actions. Heavy documentation on the "vagrant/actions/base.rb" class. New VM action runner functionality is well tested, as well.

This commit is contained in:
Mitchell Hashimoto 2010-02-12 19:53:34 -08:00 committed by John Bender
parent dd5abc5452
commit 063ea60d40
2 changed files with 1 additions and 3 deletions

View File

@ -48,4 +48,4 @@ module Vagrant
end
end
end
end
end

View File

@ -151,13 +151,11 @@ error
logger.info "Packaging VM into #{tar_path} ..."
Zlib::GzipWriter.open(tar_path) do |gz|
first_file = true
Dir.new(folder).each do |file|
next if File.directory?(file)
# Delimit the files, and guarantee new line for next file if not the first
gz.write "#{delimiter}#{file}#{delimiter}"
File.open(File.join(folder, file)).each { |line| gz.write(line) }
first_file = false
end
end