Module: ForemanSnapshotManagement

Defined in:
lib/foreman_snapshot_management.rb,
lib/foreman_snapshot_management/engine.rb,
lib/foreman_snapshot_management/version.rb,
app/models/foreman_snapshot_management/snapshot.rb,
app/helpers/foreman_snapshot_management/hosts_helper.rb,
app/helpers/foreman_snapshot_management/snapshot_helper.rb,
app/models/foreman_snapshot_management/vmware_extensions.rb,
app/models/foreman_snapshot_management/proxmox_extensions.rb,
app/controllers/foreman_snapshot_management/snapshots_controller.rb

Defined Under Namespace

Modules: HostsHelper, ProxmoxExtensions, SnapshotHelper, VmwareExtensions Classes: Engine, Snapshot, SnapshotsController

Constant Summary collapse

VERSION =
'4.1.1'

Class Method Summary collapse

Class Method Details

.calculate_fog_vsphere_namespaceObject



127
128
129
130
131
132
133
134
# File 'lib/foreman_snapshot_management/engine.rb', line 127

def self.calculate_fog_vsphere_namespace
  require 'fog/vsphere/version'
  if Gem::Version.new(Fog::Vsphere::VERSION) >= Gem::Version.new('3.0.0')
    Fog::Vsphere::Compute
  else
    Fog::Compute::Vsphere
  end
end

.fog_vsphere_namespaceObject



123
124
125
# File 'lib/foreman_snapshot_management/engine.rb', line 123

def self.fog_vsphere_namespace
  @fog_vsphere_namespace ||= calculate_fog_vsphere_namespace
end