Module: Fog::Vsphere
- Extended by:
- Provider
- Defined in:
- lib/fog/vsphere.rb,
lib/fog/vsphere/compute.rb,
lib/fog/vsphere/version.rb,
lib/fog/vsphere/models/compute/host.rb,
lib/fog/vsphere/models/compute/rule.rb,
lib/fog/vsphere/models/compute/cdrom.rb,
lib/fog/vsphere/models/compute/hosts.rb,
lib/fog/vsphere/models/compute/rules.rb,
lib/fog/vsphere/models/compute/cdroms.rb,
lib/fog/vsphere/models/compute/folder.rb,
lib/fog/vsphere/models/compute/server.rb,
lib/fog/vsphere/models/compute/ticket.rb,
lib/fog/vsphere/models/compute/volume.rb,
lib/fog/vsphere/models/compute/cluster.rb,
lib/fog/vsphere/models/compute/folders.rb,
lib/fog/vsphere/models/compute/network.rb,
lib/fog/vsphere/models/compute/process.rb,
lib/fog/vsphere/models/compute/servers.rb,
lib/fog/vsphere/models/compute/tickets.rb,
lib/fog/vsphere/models/compute/volumes.rb,
lib/fog/vsphere/models/compute/clusters.rb,
lib/fog/vsphere/models/compute/networks.rb,
lib/fog/vsphere/models/compute/snapshot.rb,
lib/fog/vsphere/models/compute/template.rb,
lib/fog/vsphere/models/compute/datastore.rb,
lib/fog/vsphere/models/compute/interface.rb,
lib/fog/vsphere/models/compute/snapshots.rb,
lib/fog/vsphere/models/compute/templates.rb,
lib/fog/vsphere/models/compute/datacenter.rb,
lib/fog/vsphere/models/compute/datastores.rb,
lib/fog/vsphere/models/compute/interfaces.rb,
lib/fog/vsphere/models/compute/servertype.rb,
lib/fog/vsphere/requests/compute/get_host.rb,
lib/fog/vsphere/requests/compute/vm_clone.rb,
lib/fog/vsphere/models/compute/customfield.rb,
lib/fog/vsphere/models/compute/customvalue.rb,
lib/fog/vsphere/models/compute/datacenters.rb,
lib/fog/vsphere/models/compute/servertypes.rb,
lib/fog/vsphere/models/compute/storage_pod.rb,
lib/fog/vsphere/requests/compute/create_vm.rb,
lib/fog/vsphere/requests/compute/update_vm.rb,
lib/fog/vsphere/requests/compute/vm_reboot.rb,
lib/fog/vsphere/requests/compute/vm_rename.rb,
lib/fog/vsphere/models/compute/customfields.rb,
lib/fog/vsphere/models/compute/customvalues.rb,
lib/fog/vsphere/models/compute/storage_pods.rb,
lib/fog/vsphere/requests/compute/get_folder.rb,
lib/fog/vsphere/requests/compute/list_hosts.rb,
lib/fog/vsphere/requests/compute/list_rules.rb,
lib/fog/vsphere/requests/compute/upload_iso.rb,
lib/fog/vsphere/requests/compute/vm_destroy.rb,
lib/fog/vsphere/requests/compute/vm_execute.rb,
lib/fog/vsphere/requests/compute/vm_migrate.rb,
lib/fog/vsphere/requests/compute/vm_suspend.rb,
lib/fog/vsphere/models/compute/interfacetype.rb,
lib/fog/vsphere/models/compute/resource_pool.rb,
lib/fog/vsphere/requests/compute/create_rule.rb,
lib/fog/vsphere/requests/compute/get_cluster.rb,
lib/fog/vsphere/requests/compute/get_network.rb,
lib/fog/vsphere/requests/compute/list_groups.rb,
lib/fog/vsphere/requests/compute/vm_power_on.rb,
lib/fog/vsphere/requests/compute/vm_relocate.rb,
lib/fog/vsphere/models/compute/interfacetypes.rb,
lib/fog/vsphere/models/compute/resource_pools.rb,
lib/fog/vsphere/models/compute/scsicontroller.rb,
lib/fog/vsphere/requests/compute/create_group.rb,
lib/fog/vsphere/requests/compute/current_time.rb,
lib/fog/vsphere/requests/compute/destroy_rule.rb,
lib/fog/vsphere/requests/compute/get_template.rb,
lib/fog/vsphere/requests/compute/list_folders.rb,
lib/fog/vsphere/requests/compute/vm_power_off.rb,
lib/fog/vsphere/requests/compute/create_folder.rb,
lib/fog/vsphere/requests/compute/destroy_group.rb,
lib/fog/vsphere/requests/compute/get_datastore.rb,
lib/fog/vsphere/requests/compute/host_shutdown.rb,
lib/fog/vsphere/requests/compute/list_clusters.rb,
lib/fog/vsphere/requests/compute/list_networks.rb,
lib/fog/vsphere/requests/compute/vm_config_vnc.rb,
lib/fog/vsphere/requests/compute/folder_destroy.rb,
lib/fog/vsphere/requests/compute/get_datacenter.rb,
lib/fog/vsphere/requests/compute/list_processes.rb,
lib/fog/vsphere/requests/compute/list_templates.rb,
lib/fog/vsphere/requests/compute/list_vm_cdroms.rb,
lib/fog/vsphere/requests/compute/get_server_type.rb,
lib/fog/vsphere/requests/compute/get_storage_pod.rb,
lib/fog/vsphere/requests/compute/list_datastores.rb,
lib/fog/vsphere/requests/compute/list_vm_volumes.rb,
lib/fog/vsphere/requests/compute/modify_vm_cdrom.rb,
lib/fog/vsphere/requests/compute/list_datacenters.rb,
lib/fog/vsphere/requests/compute/modify_vm_volume.rb,
lib/fog/vsphere/requests/compute/vm_reconfig_cpus.rb,
lib/fog/vsphere/requests/compute/vm_take_snapshot.rb,
lib/fog/vsphere/requests/compute/get_resource_pool.rb,
lib/fog/vsphere/requests/compute/list_customfields.rb,
lib/fog/vsphere/requests/compute/list_server_types.rb,
lib/fog/vsphere/requests/compute/list_storage_pods.rb,
lib/fog/vsphere/requests/compute/list_vm_snapshots.rb,
lib/fog/vsphere/requests/compute/vm_acquire_ticket.rb,
lib/fog/vsphere/requests/compute/vm_reconfig_cdrom.rb,
lib/fog/vsphere/requests/compute/get_interface_type.rb,
lib/fog/vsphere/requests/compute/list_vm_interfaces.rb,
lib/fog/vsphere/requests/compute/revert_to_snapshot.rb,
lib/fog/vsphere/requests/compute/set_vm_customvalue.rb,
lib/fog/vsphere/requests/compute/vm_reconfig_memory.rb,
lib/fog/vsphere/requests/compute/vm_remove_snapshot.rb,
lib/fog/vsphere/requests/compute/vm_revert_snapshot.rb,
lib/fog/vsphere/requests/compute/get_virtual_machine.rb,
lib/fog/vsphere/requests/compute/list_resource_pools.rb,
lib/fog/vsphere/requests/compute/modify_vm_interface.rb,
lib/fog/vsphere/requests/compute/vm_reconfig_volumes.rb,
lib/fog/vsphere/requests/compute/get_compute_resource.rb,
lib/fog/vsphere/requests/compute/list_child_snapshots.rb,
lib/fog/vsphere/requests/compute/list_interface_types.rb,
lib/fog/vsphere/requests/compute/list_vm_customvalues.rb,
lib/fog/vsphere/requests/compute/modify_vm_controller.rb,
lib/fog/vsphere/requests/compute/vm_reconfig_hardware.rb,
lib/fog/vsphere/requests/compute/list_virtual_machines.rb,
lib/fog/vsphere/requests/compute/host_start_maintenance.rb,
lib/fog/vsphere/requests/compute/list_compute_resources.rb,
lib/fog/vsphere/requests/compute/cloudinit_to_customspec.rb,
lib/fog/vsphere/requests/compute/host_finish_maintenance.rb,
lib/fog/vsphere/requests/compute/list_vm_scsi_controllers.rb,
lib/fog/vsphere/requests/compute/get_vm_first_scsi_controller.rb
Defined Under Namespace
Modules: Errors Classes: Compute
Constant Summary collapse
- VERSION =
'3.1.1'.freeze
Class Method Summary collapse
-
.class_from_string(name, default_path = '') ⇒ Object
This helper was originally added as Fog.class_as_string and moved to core but only used here.
Class Method Details
.class_from_string(name, default_path = '') ⇒ Object
This helper was originally added as Fog.class_as_string and moved to core but only used here
18 19 20 21 22 23 24 |
# File 'lib/fog/vsphere.rb', line 18 def self.class_from_string(name, default_path = '') const = default_path.empty? ? name.to_s : "#{default_path}::#{name}" klass = const.split('::').inject(Object) { |m, c| m.const_get(c) } return klass unless klass == Object rescue NameError nil end |