(#1) Use config file for defaults

This commit allows vmfloaty to read from a dotfile for some simple
configuration defaults
This commit is contained in:
Brian Cain 2015-09-06 11:10:43 -07:00
parent 49b4956323
commit 4c249c0ce4
2 changed files with 27 additions and 6 deletions

View file

@ -36,3 +36,15 @@ gem install vmfloaty
-t, --trace
Display backtrace when an error occurs
```
### vmfloaty dotfile
If you do not wish to continuely specify various config options with the cli, you can have a dotfile in your home directory for some defaults. For example:
```yaml
#file at /Users/me/.vmpooler.yml
url: 'http://vmpooler.mycompany.net'
user: 'brian'
```
Now vmfloaty will use those config files if no flag was specified.