Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nistude/guard-knife
Guard for Chef using knife to upload files
https://github.com/nistude/guard-knife
Last synced: 3 months ago
JSON representation
Guard for Chef using knife to upload files
- Host: GitHub
- URL: https://github.com/nistude/guard-knife
- Owner: nistude
- License: mit
- Created: 2012-03-09T15:07:21.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-02-18T06:07:52.000Z (about 12 years ago)
- Last Synced: 2024-09-21T21:43:28.788Z (5 months ago)
- Language: Ruby
- Homepage:
- Size: 119 KB
- Stars: 26
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
- License: LICENSE
Awesome Lists containing this project
README
Guard::Knife
============Knife guard allows to update cookbooks, data bags, environments, and roles
automatically when files are modified.It differs from [Guard::Chef][guard-chef-repo] in that it does not depend on
activesupport and it uses knife directly instead of relying on some rake tasks
being around.Install
-------Please be sure to have [Guard](https://github.com/guard/guard) installed before
continuing.Install the gem:
$ gem install guard-knife
Add it to your Gemfile
``` ruby
gem 'guard-knife'
```Add guard definition to your Guardfile by running this command:
$ guard init knife
Guardfile
---------``` ruby
guard 'knife' do
watch(%r{^cookbooks/.+$})
watch(%r{^data_bags/.+$})
watch(%r{^environments/.+$})
watch(%r{^roles/.+$})
end
```Options
-------By default Guard::Knife uses your `~/.chef/knife.rb`. To use a different
configuration file, use the `:config` option:``` ruby
guard 'knife', :config => '~/.chef/other_knife_config.rb' do
# ...
end
```Development
-----------* Source hosted at [GitHub](https://github.com/nistude/guard-knife)
* Report Issues/Questions/Feature requests on [GitHub Issues](https://github.com/nistude/guard-knife/issues)Pull requests are very welcome! Make sure your patches are well tested. Please
create a topic branch for every separate change you make.Author
------[Nikolay Sturm](http://blog.nistu.de/)
[guard-chef-repo]: https://github.com/dreamr/guard-chef#readme