Dev Ops Scripting.
$ gem install dosh
Ruby 1.9.3 or greater.
- Scripts should be standalone.
- DRY, but self-sufficency and explictness are important too.
- Scripts should be re-runnable, with the same outcome. If something changes that can't be repeated, check for it and exit early.
- "ensure_< state >" checks if a state is true, generating a fault if not.
- "install_< noun >" installs the given noun, to a completely "ready" state.
- "meet_< noun >_< state >" takes the noun and attemps to achieve the given state.
Part inspiration comes from Babushka by Ben Hoskings - with some different design goals. I was bending babushka beyond what it was designed to do, hence dosh. If dosh doesn't work for you, Babushka might be what you are after.
You might also want to check out Chef or Puppet.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) 2a. Make sure you have some tests or way of validating the feature. - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
- ... and thanks!
MIT Licensed. See LICENSE.txt