mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
variable Previously, there were two ways to configure Vmpooler, either by changing the contents of vmpooler.yaml or by assigning the raw YAML to the VMPOOLER_CONFIG environment variable. This commit adds a new environment variable called VMPOOLER_CONFIG_FILE that can be assigned the name of a config file to use. Also fixes #240 by whitelisting the Symbol class when calling YAML.safe_load in Vmpooler.config.
19 lines
340 B
Ruby
19 lines
340 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/statsd'
|
|
|
|
def project_root_dir
|
|
File.dirname(File.dirname(__FILE__))
|
|
end
|
|
|
|
def fixtures_dir
|
|
File.join(project_root_dir, 'spec', 'fixtures')
|
|
end
|