Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 797 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 797 Bytes

Chef-mode is an Emacs minor mode to make editing Opscode Chef repositories easier.

It defines a minor mode, chef-mode, and a corresponding global-chef-mode, with two keybindings:

  • C-c C-c (M-x chef-knife-dwim) - when editing part of chef repository (cookbook, data bag item, node/role/environment definition), uploads that part to the Chef Server by calling appropriate knife command
  • C-c C-k (M-x knife) - runs a user-specified knife command

The library detects bundler and, if Gemfile is present on top-level of the Chef repository, runs 'bundle exec knife' instead of plain 'knife'.

If chef-use-rvm is non-nil, it talks with rvm.el to use proper Ruby and gemset.