SpigitConf
This gem was created in order to programatically modify our spigit-conf.xml and spigit-search-conf.xml configuration files.
Installation
Add this line to your application's Gemfile:
gem 'spigit_conf'
And then execute:
$ bundle
Or install it yourself as:
$ gem install spigit_conf
Usage
require 'spigit_conf'
s = SpigitConf::Engage.new(file: '/opt/webapps/customer/WEB-INF/spigit-conf.xml')
s.max_idle_browser_period # => "20"
s.max_idle_browser_period = 25 # => 25
s.save! # automatically backs up the config and saves updates in place.
Development
After checking out the repo, run bundle
to install dependencies.
Contributing
- Fork it ( https://github.com/MindjetLLC/spigit_conf/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