lib/vagrant-ovirt4.rb in vagrant-ovirt4-2.0.0 vs lib/vagrant-ovirt4.rb in vagrant-ovirt4-2.1.0

- old
+ new

@@ -1,25 +1,29 @@ +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