Class: Tenderloin::Actions::VM::Halt
- Defined in:
- lib/tenderloin/actions/vm/halt.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from 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
5 6 7 8 9 10 |
# File 'lib/tenderloin/actions/vm/halt.rb', line 5 def execute! raise ActionException.new("VM is not running! Nothing to shut down!") unless @runner.running? logger.info "Forcing shutdown of VM..." @runner.fusion_vm.stop(:force => true) end |