Sha256: b7fd3ca974a27213dddf3ef066fbb53e0ca1b6b446dd627e13758cb74129e5fe
Contents?: true
Size: 482 Bytes
Versions: 29
Compression:
Stored size: 482 Bytes
Contents
module Veewee module Provider module Virtualbox module BoxCommand def poweroff(options={}) # If the vm is not powered off, perform a shutdown if (self.exists? && self.running?) ui.info "Shutting down vm #{name}" #We force it here, maybe vm.shutdown is cleaner command="#{@vboxcmd} controlvm \"#{name}\" poweroff" shell_exec("#{command}") end end end end end end
Version data entries
29 entries across 29 versions & 2 rubygems