A Chef cookbook to install n98-magerun.phar - a CLI for Magento.
n98-magerun::default
installs n98-magerun, e.g. place include_recipe n98-magerun::default
in your recipe.
n98-magerun is installed prior to compilation so that it could be used in later recipes.
node['n98-magerun']['install_dir']
- path to install to (default/usr/local/bin
)node['n98-magerun']['install_file']
- name of installed binary (defaultn98-magerun.phar
)node['n98-magerun']['url']
- url to get binary from (defaulthttps://raw.github.com/netz98/n98-magerun/master/n98-magerun.phar
)node['n98-magerun']['unstable']
- Specify whether to update to unstable version (using self-update) (defaultfalse
)
n98-magerun::default
- Install n98-magerun.
As an aside - I personally use this with Vagrant and have set up a bash function to use a pseudo-tty with magerun in the vagrant box.
e.g. in ~/.bash_profile
place:
magerun () {
vagrant ssh -- -t n98-magerun.phar --root-dir=/vagrant $@
}
Open a new bash prompt at your Vagrant project and interact with n98-magerun as if it were local.
$ magerun help
$ magerun cache:clean
Your commands will be run inside the Vagrant box using the n98-magerun config and Magento root defined.
For performance reasons you might like to use the $ magerun shell
feature rather than opening a new ssh connection for each command.
- File bug reports via GitHub issues.
- Pull requests are welcome.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Added some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request