THIS PROJECT HAS BEEN ARCHIVED
CodeStrap
CodeStrap is a simple command line project code generator. It provides an easy way to create custom boilerplate for new projects and individual text files, and a very easy way to access that boilerplate.
It is written specifically for ease of use on the command line.
Quickstart
1. Download and install using the package installer
At this stage only Linux and OSX are supported.
2. Clone the sample templates to your home directory
git clone http://github.com/dexterp/codestrap-samples.git $HOME/.codestrap
3. Add CodeStrap files to your path
echo 'export PATH=$HOME/.codestrap/bin:$PATH' >> $HOME/.profile
export PATH=$HOME/.codestrap/bin:$PATH
4. Scan available templates and generate commands (sym links)
# List templates
ls $HOME/.codestrap/content
# Generate links
strap -g
# List generated commands
ls $HOME/.codestrap/bin
5. Create files and projects from boilerplate
# Text file boilerplate
stubrubyscript myscript.rb
stubperlscript myscript.pl
# Project boilerplate
strappuppetmodule mypuppetmodule
straprubygem mygem
Boilerplate Setup
For template setups for both projects and individual files see ...
Configuration File
Codestrap uses "Codestrapfile" as a configuration file. For details see.