module ForemanSnapshotManagement

Constants

VERSION

Public Class Methods

calculate_fog_vsphere_namespace() click to toggle source
# File lib/foreman_snapshot_management/engine.rb, line 133
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_namespace() click to toggle source
# File lib/foreman_snapshot_management/engine.rb, line 129
def self.fog_vsphere_namespace
  @fog_vsphere_namespace ||= calculate_fog_vsphere_namespace
end