-
Notifications
You must be signed in to change notification settings - Fork 8
/
README
28 lines (20 loc) · 1.03 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
== 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