Class: Veewee::Provider::Vmfusion::Box

Inherits:
Core::Box show all
Includes:
Core::BoxCommand, BoxCommand
Defined in:
lib/veewee/provider/vmfusion/box.rb

Instance Attribute Summary

Attributes inherited from Core::Box

#definition, #env, #name, #provider

Instance Method Summary collapse

Methods included from Core::BoxCommand

#check_output_run, #check_output_sudorun, #checks_linux, #checks_windows, #copy_to_box, #create_floppy, #create_wget_vbs_command, #escape_and_echo, #exec, #halt, #issh, #poweroff, #run_hook, #scp, #send_vnc_keycode, #ssh, #ssh_command_string, #string_to_vnccode, #sudo, #validate_tags, #vnc_type, #wget_vbs, #wget_vbs_file, #wincp, #winrm, #winrm_command_string

Methods included from BoxCommand

#add_share, #add_share_from_defn, #build, #build_info, #console_type, #create, #create_disk, #create_vm, #destroy, #exists?, #export_vmfusion, #fusion_os_type, #guess_vnc_port, #guest_iso_directory, #guest_iso_path, #halt, #host_ip_as_seen_by_guest, #ip_address, #mac_address, #poweroff, #running?, #ssh, #transfer_buildinfo, #up, #validate_vmfusion, #vmx_template, #vnc_display_port, #vnc_enabled?, #vnc_port, #winrm

Methods inherited from Core::Box

#gem_available?, #reload, #set_definition, #ui

Methods included from Core::Helper::Iso

#download_iso, #download_progress, #hashsum, #no_proxy?, #verify_iso, #verify_sum

Methods included from Core::Helper::Comm

#comm_execute, #comm_method, #comm_transfer_file, #when_comm_login_works

Methods included from Core::Helper::Ssh

#build_ssh_options, #ssh_connection, #ssh_execute, #ssh_key_to_a, #ssh_options, #ssh_transfer_file, #tcp_test_ssh, #when_ssh_login_works

Methods included from Core::Helper::Shell

#shell_exec

Methods included from Core::Helper::Web

#allow_for_http_request, #wait_for_http_request

Methods included from Core::Helper::Tcp

#execute_when_tcp_available, #get_local_ip, #guess_free_port, #guess_free_ssh_port, #host_ip_as_seen_by_guest, #is_tcp_port_open?

Constructor Details

#initialize(name, env) ⇒ Box

Returns a new instance of Box


33
34
35
36
37
# File 'lib/veewee/provider/vmfusion/box.rb', line 33

def initialize(name,env)

  require 'fission'
  super(name,env)
end

Instance Method Details

#vm_pathObject


43
44
45
# File 'lib/veewee/provider/vmfusion/box.rb', line 43

def vm_path
  return File.join(::Fission.config['vm_dir'], "#{name}.vmwarevm")
end

#vmrun_cmdObject


39
40
41
# File 'lib/veewee/provider/vmfusion/box.rb', line 39

def vmrun_cmd
  return ::Fission.config['vmrun_bin']
end

#vmx_file_pathObject


47
48
49
# File 'lib/veewee/provider/vmfusion/box.rb', line 47

def vmx_file_path
  return "#{vm_path}/#{name}.vmx"
end