Closed byxorna closed 8 years ago
I think the reference config is outdated. In the relevant code we treat runners
as an array and use its keys to fetch other extra config parameters from the root config object. Tested locally:
$ cat ~/.consolr.yml
runners:
ipmitool: /usr/bin/ipmitool
dangerous_assets: []
dangerous_status: []
$ bundle exec ./bin/consolr -c -t test
/Users/mattschallert/code/collins/support/ruby/consolr/lib/consolr.rb:185:in `rescue in block in load_runners': undefined method `capitalize' for ["ipmitool", "/usr/bin/ipmitool"]:Array (NoMethodError)
from collins/support/ruby/consolr/lib/consolr.rb:181:in `block in load_runners'
from collins/support/ruby/consolr/lib/consolr.rb:180:in `each'
from collins/support/ruby/consolr/lib/consolr.rb:180:in `map'
from collins/support/ruby/consolr/lib/consolr.rb:180:in `load_runners'
from collins/support/ruby/consolr/lib/consolr.rb:101:in `start'
from ./bin/consolr:37:in `<main>'
$ cat ~/.consolr.yml
runners:
- ipmitool
ipmitool: /usr/bin/ipmitool
dangerous_assets: []
dangerous_status: []
$ bundle exec ./bin/consolr -c -t test
Found 0 assets, aborting.
I'll put together a PR to update the readme and clarify that extra configuration can be passed to runners.
ty @schallert!