require 'veewee/provider/core/box' require 'veewee/provider/core/box/vnc' require 'veewee/provider/core/helper/tcp' require 'veewee/provider/vmfusion/box/helper/status' require 'veewee/provider/vmfusion/box/helper/ip' require 'veewee/provider/vmfusion/box/helper/ssh_options' require 'veewee/provider/vmfusion/box/helper/vnc' require 'veewee/provider/vmfusion/box/helper/console_type' require 'veewee/provider/vmfusion/box/helper/buildinfo' require 'veewee/provider/vmfusion/box/build' require 'veewee/provider/vmfusion/box/up' require 'veewee/provider/vmfusion/box/create' require 'veewee/provider/vmfusion/box/poweroff' require 'veewee/provider/vmfusion/box/halt' require 'veewee/provider/vmfusion/box/destroy' require 'veewee/provider/vmfusion/box/ssh' require 'veewee/provider/vmfusion/box/template' require 'veewee/provider/vmfusion/box/validate_vmfusion' require 'veewee/provider/vmfusion/box/export_ova' module Veewee module Provider module Vmfusion class Box < Veewee::Provider::Core::Box include ::Veewee::Provider::Vmfusion::BoxCommand include ::Veewee::Provider::Core::BoxCommand def initialize(name,env) require 'fission' super(name,env) end def determine_vmrun_cmd return "#{fusion_path}/vmrun" end def vm_path home=ENV['HOME'] dir="#{home}/Documents/Virtual Machines.localized/#{name}.vmwarevm" return dir end def fusion_path dir="/Library/Application Support/VMware Fusion/" return dir end def vmx_file_path return "#{vm_path}/#{name}.vmx" end private def raw @raw=::Fission::VM.new(name) end end # End Class end # End Module end # End Module end # End Module