module ForemanWreckingball

Constants

VERSION

Public Class Methods

fog_patches_required?() click to toggle source
# File lib/foreman_wreckingball/engine.rb, line 140
def self.fog_patches_required?
  return unless Foreman::Model::Vmware.available?
  require 'fog/vsphere'
  require 'fog/vsphere/compute'
  require 'fog/vsphere/models/compute/host'
  true
rescue LoadError
  false
end
fog_vsphere_namespace() click to toggle source
# File lib/foreman_wreckingball/engine.rb, line 150
def self.fog_vsphere_namespace
  require 'fog/vsphere/version'
  @fog_vsphere_namespace ||= if Gem::Version.new(Fog::Vsphere::VERSION) >= Gem::Version.new('3.0.0')
                               Fog::Vsphere::Compute
                             else
                               Fog::Compute::Vsphere
                             end
end