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

Inherits:
Core::Box
  • Object
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

#build, #build_info, #copy_to_box, #create_floppy, #create_wget_vbs_command, #escape_and_echo, #exec, #fill_sequence, #filter_postinstall_files, #halt, #handle_kickstart, #handle_postinstall, #issh, #poweroff, #scp, #send_vnc_keycode, #ssh, #ssh_command_string, #string_to_vnccode, #sudo, #transfer_buildinfo, #validate_postinstall_regex, #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_ova, #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, #ssh_options, #transfer_buildinfo, #up, #validate_vmfusion, #vmx_template, #vnc_display_port, #vnc_enabled?, #vnc_port, #winrm, #winrm_options

Methods inherited from Core::Box

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

Methods included from Core::Helper::Iso

#download_iso, #download_progress, #hashsum, #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

#ssh_execute, #ssh_transfer_file, #when_ssh_login_works

Methods included from Core::Helper::Shell

#shell_exec

Methods included from Core::Helper::Web

#allow_for_http_request, #server_for_http_request, #wait_for_http_request

Methods included from Core::Helper::Tcp

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

Constructor Details

#initialize(name, env) ⇒ Box

Returns a new instance of Box.



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

def initialize(name,env)

  require 'fission'
  super(name,env)
end

Instance Method Details

#vm_pathObject



45
46
47
# File 'lib/veewee/provider/vmfusion/box.rb', line 45

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

#vmrun_cmdObject



41
42
43
# File 'lib/veewee/provider/vmfusion/box.rb', line 41

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

#vmx_file_pathObject



49
50
51
# File 'lib/veewee/provider/vmfusion/box.rb', line 49

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