/bade

Simple CLI utility for managing Puppet modules using GIT subtree

Primary LanguagePython

== Bade ==

Base is a simple CLI utility focused to ease work with Puppet modules.
Each module is managed via GIT subtree and metadata from Puppetfile.

Examples:

1. To initialize repo with modules:
a) create Puppetfile in your git repo, commit Puppetfile
b) run "bade init" or "bade init --commit" if you want to generate a commit too

2. To update module with new commit:
a) run "bade update --module <module name> --hash <commit hash> --commit"

3. To generate SPEC file from Puppetfile and tag repo with "version-release" tag:
a) do step 3.
b) run "bade spec --version <version> --release <release> --old /path/to/current/file.spec --output /path/to/new/file.spec"

4. To add new Puppet module to Puppetfile and base branch:
a) run "bade add --upstream https://url.to/puppet-module.git --hash <commit hash from puppet-module> --commit"


TO-DO:
- spec command for generating SPEC file from template [DONE]
- spec command should parse patches from old file [DONE]
- add command for adding modules [DONE]
- rm command for removing modules
- unit tests