Sha256: 1b58f3e481c5251a2cb944546945db3103c57c19c5d38210005eeadab3754bf5
Contents?: true
Size: 452 Bytes
Versions: 16
Compression:
Stored size: 452 Bytes
Contents
module Mccloud::Provider module Libvirt module VmCommand def halt(options) if self.running? env.ui.info "Halting machine #{@name}(#{@raw.id})" raw.shutdown raw.wait_for { printf "."; STDOUT.flush; state=="stopped"||state=="crashed"} env.ui.info "" else env.ui.info "#{@name}(#{raw.id}) is already halted." end end end #module end #module end #module
Version data entries
16 entries across 16 versions & 1 rubygems