require 'log4r' require 'pathname' require 'vagrant-ovirt4/plugin' module VagrantPlugins module OVirtProvider lib_path = Pathname.new(File.expand_path("../vagrant-ovirt4", __FILE__)) autoload :Action, lib_path.join("action") autoload :Errors, lib_path.join("errors") autoload :Util, lib_path.join("util") @@logger = Log4r::Logger.new("vagrant_ovirt4::provider") @@ovirt_connection = nil @@vms_service = nil def self.ovirt_connection @@logger.warn('Use of deprecated OVirtProvider.ovirt_connection detected.') @@ovirt_connection end def self.ovirt_connection=(conn) @@ovirt_connection = conn end def self.vms_service @@logger.warn('Use of deprecated OVirtProvider.vms_service detected.') @@vms_service end def self.vms_service=(conn) @@vms_service = conn end # This returns the path to the source of this plugin. # # @return [Pathname] def self.source_root @source_root ||= Pathname.new(File.expand_path("../../", __FILE__)) end end end