mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(POOLER-137) Support integer environment variables
This commit updates vmpooler to set configuration values received via environment variables to integer values when an integer value is expected. Without this change vmpooler does not support setting integer values via environment variables. Additionally, testing is added for configuring vmpooler via environment variables. To support this testing the gem climate_control is added, which allows for testing environment variables without those set variables leaking to other tests.
This commit is contained in:
parent
a1704b239e
commit
d94b14a4d8
5 changed files with 249 additions and 17 deletions
1
Gemfile
1
Gemfile
|
|
@ -26,6 +26,7 @@ group :test do
|
|||
gem 'rspec', '>= 3.2'
|
||||
gem 'simplecov', '>= 0.11.2'
|
||||
gem 'yarjuf', '>= 2.0'
|
||||
gem 'climate_control', '>= 0.2.0'
|
||||
# Rubocop would be ok jruby but for now we only use it on
|
||||
# MRI or Windows platforms
|
||||
gem "rubocop", :platforms => [:ruby, :x64_mingw]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue