Chef Support
Chef is a configuration management tool that allows you to automate infrastructure management. In RubyMine, you can work with Chef cookbooks, recipes, and resources. The IDE detects cookbooks automatically and enables code insight features (such as code completion and navigation) for resources and their attributes.
Before working with Chef cookbooks in RubyMine, make sure that the following prerequisites are met:
Install the Chef plugin as described in Install plugins.
Add the chef gem to the project's Gemfile and install it to the project SDK.
If a directory contains the recipes folder, RubyMine can detect it as a cookbook.
Open a recipe file and start typing.
Click Configure Cookbooks in the invoked popup.
In the Configure Cookbooks dialog, select the desired cookbooks and press Enter.
Open the Project view Alt01.
Right-click the desired directory and select Mark Directory As | Cookbook Root.
To unmark the directory, select Mark Directory As | Unmark as Cookbook Root.
tip
You can also mark a directory as a cookbook in the Project Structure dialog.
RubyMine provides the following code insight capabilities for Ruby files inside the recipes folder:
Code completion
Use code completion CtrlSpace to complete the names of Chef resources, attributes, and attribute arguments.
Navigation
Navigate to a resource declaration with Ctrl0B.
Thanks for your feedback!