(maint) Fix vmpooler require in bin/vmpooler

During a rebase the vmpooler require was mixed up and still specified
lib/vmpooler. This commit removes this as well as the rubygems
requirement. Without this change vmpooler fails to work when built
because it cannot load lib/vmpooler.
This commit is contained in:
kirby@puppetlabs.com 2018-07-16 16:49:18 -07:00
parent 95d9c83479
commit f425996768

View file

@ -1,16 +1,12 @@
#!/usr/bin/env ruby
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rubygems' unless defined?(Gem)
require 'lib/vmpooler'
require 'vmpooler'
config = Vmpooler.config
redis_host = config[:redis]['server']
redis_port = config[:redis]['port']
redis_password = config[:redis]['password']
logger_file = config[:config]['logfile']
api_logger_file = config[:config]['api_logfile']
metrics = Vmpooler.new_metrics(config)