Sha256: 26bd4a0a16130f51cebb06f1a2ec4699b7f97abd73221e5005366b2f58be218b
Contents?: true
Size: 587 Bytes
Versions: 6
Compression:
Stored size: 587 Bytes
Contents
module Veewee module Provider module Kvm module BoxCommand def running? if exists_vm? @connection.servers.all(:name => name).first.ready? else false end end def exists? exists_volume? || exists_vm? end def exists_volume? !@connection.volumes.all(:name => "#{name}.img").nil? end def exists_vm? !@connection.servers.all(:name => name).nil? end end # End Module end # End Module end # End Module end # End Module
Version data entries
6 entries across 6 versions & 1 rubygems