zev / chef-mode

Emacs mode to edit Chef repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Emacs mode to edit Chef repositories

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Emacs Lisp 100.0%