Class: Tenderloin::Actions::Box::Destroy

Inherits:
Tenderloin::Actions::Base show all
Defined in:
lib/tenderloin/actions/box/destroy.rb

Overview

Action to destroy a box. This action is not reversible and expects to be called by a Tenderloin::Actions::Box object.

Instance Attribute Summary

Attributes inherited from Tenderloin::Actions::Base

#run_args, #runner

Instance Method Summary collapse

Methods inherited from Tenderloin::Actions::Base

#cleanup, #initialize, #prepare, #rescue

Methods included from Util

#error_and_exit, included, #logger, #wrap_output

Constructor Details

This class inherits a constructor from Tenderloin::Actions::Base

Instance Method Details

#execute!Object



7
8
9
10
# File 'lib/tenderloin/actions/box/destroy.rb', line 7

def execute!
  logger.info "Deleting box directory..."
  FileUtils.rm_rf(@runner.directory)
end