Class: Vagrant::Action::General::Package
- Inherits:
-
Object
- Object
- Vagrant::Action::General::Package
- Defined in:
- lib/vagrant-aws/action/create_image.rb
Instance Method Summary collapse
Instance Method Details
#recover(env) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/vagrant-aws/action/create_image.rb', line 10 def recover(env) unless env["vagrant.error"].is_a?(Errors::PackageOutputExists) # Cleanup any packaged files if the packaging failed at some point. File.delete(tar_path) if File.exist?(tar_path) end end |