Class: VagrantPlugins::SecuredCloud::Action::PowerOff

Inherits:
PowerVm
  • Object
show all
Defined in:
lib/secured-cloud-vagrant/actions/power_off.rb

Overview

This can be used with “Call” built-in to check if the machine is created and branch in the middleware.

Instance Method Summary collapse

Methods inherited from PowerVm

#call

Constructor Details

#initialize(app, env) ⇒ PowerOff

Returns a new instance of PowerOff.



13
14
15
16
# File 'lib/secured-cloud-vagrant/actions/power_off.rb', line 13

def initialize(app, env)
	env[:ui].info(I18n.t("secured_cloud_vagrant.info.powering_off"))
	super(app, env, "off")
end