Inventoryfile
Inventoryfile. A parser for ansible inventory file which is an INI like formatted file.
Installation
gem 'inventoryfile'
And then execute:
$ bundle
Or install it yourself as:
$ gem install inventoryfile
Usage
require 'inventoryfile'
parser = Inventoryfile::Parser.new("PATH_TO_FILE")
parser.parse("SECTION_NAME")
Contributing
- Fork it ( https://github.com/[my-github-username]/inventoryfile/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request
License
MIT