Skip to content

Instantly share code, notes, and snippets.

@rogeruiz
Created June 15, 2016 14:17
Show Gist options
  • Save rogeruiz/6520cec4ff1b2acaf7a435dada877462 to your computer and use it in GitHub Desktop.
Save rogeruiz/6520cec4ff1b2acaf7a435dada877462 to your computer and use it in GitHub Desktop.
A helpful rebuild script for working with Compliance Masonry and `cg-compliance`
#!/bin/sh
set -u
set -e
# When working with `cg-compliance` you'll need to run the two commands
# to update the compliance-masonry 'export' directory for in order for gitbooks
# to be aware of changes in order for gitbooks to update the server.
cm_path=`which compliance-masonry`
if [[ $cm_path == "compliance-masonry not found" ]]; then
echo "You don't seem to have the 'compliance-masonry' binary in your '\$PATH'"
echo "Peep => https://github.com/opencontrol/compliance-masonry#quick-start"
exit 1
fi
time compliance-masonry get
echo
time compliance-masonry docs gitbook FedRAMP-Moderate
@rogeruiz
Copy link
Author

Using this script

  • Download the script
  • Make it executable i.e. chmod +x ./path/to/script/rebuild-docs
  • Run the script from within the root cg-compliance directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment