Sha256: 234f0afee1431227e9814c62c4e6178987bc559ef7ca2d260efba2c06958c55a
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
require 'veewee/provider/core/box' require 'veewee/provider/core/box/vnc' require 'veewee/provider/kvm/box/validate_kvm' require 'veewee/provider/kvm/box/build' require 'veewee/provider/kvm/box/create' require 'veewee/provider/kvm/box/up' require 'veewee/provider/kvm/box/halt' require 'veewee/provider/kvm/box/poweroff' require 'veewee/provider/kvm/box/destroy' require 'veewee/provider/kvm/box/helper/ip' require 'veewee/provider/kvm/box/helper/ssh_options' require 'veewee/provider/kvm/box/helper/status' require 'veewee/provider/kvm/box/helper/console_type' module Veewee module Provider module Kvm class Box < Veewee::Provider::Core::Box include ::Veewee::Provider::Core include ::Veewee::Provider::Kvm include ::Veewee::Provider::Core::BoxCommand include ::Veewee::Provider::Kvm::BoxCommand attr_accessor :connection def initialize(name,env) super(name,env) @connection=::Fog::Compute[:libvirt] # Many of the existing templates have disk_format set to "VDI" # Use "raw" instead as a Libvirt-compatible default definition.disk_format.downcase! definition.disk_format = "raw" if definition.disk_format == "vdi" @volume_name = "#{name}.#{definition.disk_format}" end end # End Class end # End Module end # End Module end # End Module
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veewee-atlassian-0.3.11 | lib/veewee/provider/kvm/box.rb |