Knife::Helper
Helper and Command builder for knife (chef-server, knife-zero, etc)
Installation
Add this line to your application's Gemfile:
gem 'knife-helper'
And then execute:
$ bundle
Or install it yourself as:
$ gem install knife-helper
Usage
knife helper init
Generate .knife.helper.yml
,.chef/knife.rb
and Berksfile
,Cheffile
(by option)
$ knife helper init (options)
-c [PATH1,PATH2...], Path to Cookbooks
--cookbook-path
-l, --local local mode (for zero)
-r, --repo-path PATH Path to Chef Repogitory
-B, --berks Generate Berksfile
-L, --librarian Generate Cheffile
knife helper exec
Execute some command that built from the configuration file.
$ knife helper exec NAME (option)
-f, --file FILE Path to config file(yaml)
-p, --print-only Only print the command that built by helper
Configuration
---
includes:
- example.yml
settings:
command_base: /home/marcy/.rbenv/versions/2.1.5/bin/knife
commands:
- name: default
command: help
condition:
options:
includes
Include some external configuration files.
settings:command_base
Path to knife
execution script.
commands:name
Command name for execution.
commands:condition
Condition for search and execute command.
commands:option
Command options.
ChangeLog
see CHANGELOG
Contributing
- Source hosted at GitHub
- Report issues/questions/feature requests on GitHub Issues
Pull requests are very welcome! Make sure your patches are well tested. Ideally create a topic branch for every separate change you make. For example:
- Fork the repo
- 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
Authors
Created and maintained by Masashi Terui ([email protected])
License
Apache 2.0 (see LICENSE)