cookbook 'n98-magerun', '~> 0.2.2'
n98-magerun (1) Versions 0.2.2 Follow0
Installs/Configures n98-magerun.phar
cookbook 'n98-magerun', '~> 0.2.2', :supermarket
knife supermarket install n98-magerun
knife supermarket download n98-magerun
n98-magerun Chef Cookbook
A Chef cookbook to install n98-magerun.phar - a CLI for Magento.
Usage
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.
Attributes
node['n98-magerun']['install_dir']
- path to install to (default /usr/local/bin
)
node['n98-magerun']['install_file']
- name of installed binary (default n98-magerun.phar
)
node['n98-magerun']['url']
- url to get binary from (default https://raw.github.com/netz98/n98-magerun/master/n98-magerun.phar
)
node['n98-magerun']['unstable']
- Specify whether to update to unstable version (using self-update) (default false
)
Recipes
n98-magerun::default
- Install n98-magerun.
Vagrant
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:
bash
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.
Contributing
- 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
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.2.2 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.2.2 failed this metric
FC053: Metadata uses the deprecated "recommends" keyword: n98-magerun/metadata.rb:14
FC064: Ensure issues_url is set in metadata: n98-magerun/metadata.rb:1
FC065: Ensure source_url is set in metadata: n98-magerun/metadata.rb:1
FC066: Ensure chef_version is set in metadata: n98-magerun/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.2 passed this metric
Testing File Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.2.2 failed this metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.2.2 failed this metric
FC053: Metadata uses the deprecated "recommends" keyword: n98-magerun/metadata.rb:14
FC064: Ensure issues_url is set in metadata: n98-magerun/metadata.rb:1
FC065: Ensure source_url is set in metadata: n98-magerun/metadata.rb:1
FC066: Ensure chef_version is set in metadata: n98-magerun/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.2.2 passed this metric
Testing File Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.2.2 failed this metric
FC064: Ensure issues_url is set in metadata: n98-magerun/metadata.rb:1
FC065: Ensure source_url is set in metadata: n98-magerun/metadata.rb:1
FC066: Ensure chef_version is set in metadata: n98-magerun/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.2.2 passed this metric
Testing File Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.2.2 failed this metric
0.2.2 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number