2010-03-04 20:58:50 -08:00

14 lines
344 B
Ruby

module Vagrant
module Actions
module Box
# Action to destroy a box. This action is not reversible and expects
# to be called by a {Box} object.
class Destroy < Base
def execute!
logger.info "Deleting box directory..."
FileUtils.rm_rf(@runner.directory)
end
end
end
end
end