mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Add a new Prometheus class as an additional stats feed along with the existing feeds. Move the metrics initialisation code into its own class and sub-class the individual metrics implementations under this.
19 lines
341 B
Ruby
19 lines
341 B
Ruby
require 'simplecov'
|
|
SimpleCov.start do
|
|
add_filter '/spec/'
|
|
end
|
|
require 'helpers'
|
|
require 'rbvmomi_helper'
|
|
require 'rbvmomi'
|
|
require 'rspec'
|
|
require 'vmpooler'
|
|
require 'redis'
|
|
require 'vmpooler/metrics'
|
|
|
|
def project_root_dir
|
|
File.dirname(File.dirname(__FILE__))
|
|
end
|
|
|
|
def fixtures_dir
|
|
File.join(project_root_dir, 'spec', 'fixtures')
|
|
end
|