opscode_chef.vim_dict


Ⅰ. 插件描述

Vim Dict files for Opscode Chef

Ⅱ. 基本信息

创建日期:  2013-08-12
使用用户:  1
Github星:  12
插件作者:  Opsrock.in

Ⅲ. 安装方法

使用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.dict

Use 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/*.dict

Supports

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
  1. clone to opscode chef source to ./chef and ohai source to ./ohai
  2. check out any version you need
  3. bundle
  4. edit Rakefile too add a new task
  5. rake

Licence and Author

LICENSE: MIT. (see LICENSE.txt)

Author: Yukihiko Sawanobori [opslock.in, HiganWorks LLC]

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write you change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

添加新评论