Class: Mccloud::Provider::Vmfusion::Vm

Inherits:
Core::Vm
  • Object
show all
Includes:
VmCommand
Defined in:
lib/mccloud/provider/vmfusion/vm.rb

Instance Attribute Summary

Attributes inherited from Core::Vm

#agent_forwarding, #auto_selection, #bootstrap, #bootstrap_password, #bootstrap_user, #create_options, #declared, #definition, #env, #forwardings, #name, #port, #private_key_path, #provider, #provisioners, #public_key_path, #shared_files, #shared_folders, #stacked, #user

Instance Method Summary collapse

Methods included from VmCommand

#forward, #halt, #resume, #suspend, #up

Methods inherited from Core::Vm

#auto_selected?, #declared?, #forward_port, #initialize, #method_missing, #provision, #provisioner, #stacked?

Methods included from Core::VmCommand

#adjust_rsync_path, #bg_exec, #execute, #fg_exec, #rsync, #rsync_permissions, #share, #share_file, #share_folder, #share_sync, #ssh, #ssh_bootstrap, #ssh_commandline_options, #ssh_forward, #ssh_tunnel_start, #ssh_tunnel_stop, #sudo, #sudo_string, #windows_client?

Constructor Details

This class inherits a constructor from Mccloud::Provider::Core::Vm

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Mccloud::Provider::Core::Vm

Instance Method Details

#ip_addressObject



24
25
26
# File 'lib/mccloud/provider/vmfusion/vm.rb', line 24

def ip_address
  "127.0.0.1"
end

#private_ip_addressObject



32
33
34
# File 'lib/mccloud/provider/vmfusion/vm.rb', line 32

def private_ip_address
  "127.0.0.1"
end

#public_ip_addressObject



28
29
30
# File 'lib/mccloud/provider/vmfusion/vm.rb', line 28

def public_ip_address
  "127.0.0.1"
end

#rawObject



36
37
38
39
40
41
42
43
44
# File 'lib/mccloud/provider/vmfusion/vm.rb', line 36

def raw
  if @raw.nil?
    if @provider.raw.include?(@name.to_s)
      @raw=Fission::VM.new("#{@name.to_s}")
    end
  end

  return @raw
end