Ⅰ. 插件描述
Vim Dict files for Opscode ChefⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'opsrockin/opscode-chef-vim-dict'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'opsrockin/opscode-chef-vim-dict'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'opsrockin/opscode-chef-vim-dict'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/opsrockin/opscode_chef.vim_dict
Ⅳ. 文档说明
# vim dictionary files for Opscode Chef
VERSION
Chef #=> 11.8.2 Ohai #=> 6.20.0
Usage
Clone to .vim/dict
$ mkdir -p ~/.vim/dict
$ git clone https://github.com/OpsRockin/opscode_chef.vim_dict.git ~/.vim/dict/opscode_chef.dictUse in vim
:set dictionary+=~/.vim/dict/opscode_chef.dict/*.dict
example for .vimrc
Toggle chef dictonary with :ChefDicAdd or :ChefDicRem.
" load_or remove chef_dict
command ChefDicAdd set dictionary+=~/.vim/dict/opscode_chef.dict/*.dict
command ChefDicRem set dictionary-=~/.vim/dict/opscode_chef.dict/*.dictSupports
From source(rake task)
- platforms
- config options
- knife config options
- constants of provider
- all resouce names
- resouce options
- recipe methods
- DSL methods includes Chef::DSL::*
- Ohai automatic providers
manually created(Todo: create rake task)
_add_by_hand.dict
- immediately
Development
requirements
- a source code of the opscode chef
- ruby with bundler or activesupport
- rake
- clone to opscode chef source to
./chefand ohai source to./ohai - check out any version you need
- bundle
- edit
Rakefiletoo add a new task - rake
Licence and Author
LICENSE: MIT. (see LICENSE.txt)
Author: Yukihiko Sawanobori [opslock.in, HiganWorks LLC]
Contributing
- Fork the repository on Github
- Create a named feature branch (like
add_component_x) - Write you change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github