strider / bade

Simple CLI utility for GIT submodules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

== 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 initialize just module branches localy:
a) clone repo with modules
b) run "bade sync"

3. To add a new hash to the Puppetfile and synchronize the module with that commit:
a) run bade update --module <module name> --hash <commit hash> --commit
   (e.g.) run bade update --module apache --hash 8d09ecd81ce1001d9461570716d20898fe336f4a --commit

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

5. To add new Puppet module to Puppetfile and base branch, just 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

About

Simple CLI utility for GIT submodules


Languages

Language:Python 100.0%