Archive for March, 2010

Cakeshell

Friday, March 19th, 2010

I’ve written a little wrapper script to ease the execution of cake shells. Just by creating symbolic links, you can turn any custom) cake shell into a shell command that can be called from any location. Ie: you don’t have to cd to your cake app directory. Just make sure the symlink is in your $PATH.

$ ./cakeshell
Error: script should be symlinked
cakeshell 0.1 - (c)2010 nerdnotes.org

This wrapper script is built in order to ease running cake shells.

Usage:
The script should be located somewhere your cake directory structure.
Make sure you configure the relative path of the cake script from the
directory this script lives in (REL_CAKE_PATH).

For each of the shells you want to be available, create a symlink to
./cakeshell with the name of the cake shell you want to execute

Example*
*using some real world paths here

To simplify the following cake shell call:

./cake/console/cake bake

You'll need to do this once:

cd ~/bin
ln -s ../public_html/cakesite/cakeshell bake

If ~/bin is in your PATH, you can simply run the bake script from anywhere


That’s the output, here’s the script itself.