Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Guard for Chef using knife to upload files

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rvmrc
Octocat-spinner-32 ChangeLog
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 guard-knife.gemspec
README.md

Guard::Knife

Knife guard allows to update cookbooks, data bags, environments, and roles automatically when files are modified.

It differs from Guard::Chef 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 installed before continuing.

Install the gem:

$ gem install guard-knife

Add it to your Gemfile

gem 'guard-knife'

Add guard definition to your Guardfile by running this command:

$ guard init knife

Guardfile

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:

guard 'knife', :config => '~/.chef/other_knife_config.rb' do
  # ...
end

Development

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

Something went wrong with that request. Please try again.