mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(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:
parent
95d9c83479
commit
f425996768
1 changed files with 1 additions and 5 deletions
|
|
@ -1,16 +1,12 @@
|
||||||
#!/usr/bin/env ruby
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
require 'vmpooler'
|
||||||
|
|
||||||
require 'rubygems' unless defined?(Gem)
|
|
||||||
require 'lib/vmpooler'
|
|
||||||
|
|
||||||
config = Vmpooler.config
|
config = Vmpooler.config
|
||||||
redis_host = config[:redis]['server']
|
redis_host = config[:redis]['server']
|
||||||
redis_port = config[:redis]['port']
|
redis_port = config[:redis]['port']
|
||||||
redis_password = config[:redis]['password']
|
redis_password = config[:redis]['password']
|
||||||
logger_file = config[:config]['logfile']
|
logger_file = config[:config]['logfile']
|
||||||
api_logger_file = config[:config]['api_logfile']
|
|
||||||
|
|
||||||
metrics = Vmpooler.new_metrics(config)
|
metrics = Vmpooler.new_metrics(config)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue