Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

vim-go (2) Versions 0.1.1

Installs/Configures vim-go

Policyfile
Berkshelf
Knife
cookbook 'vim-go', '= 0.1.1', :supermarket
cookbook 'vim-go', '= 0.1.1'
knife supermarket install vim-go
knife supermarket download vim-go
README
Dependencies
Changelog
Quality 0%

vim-go cookbook

vim-go (0.1.1) Installs/Configures vim-go

Installs vim-go in the .vimrc for each user based on the users data_bag

If node[:vim_go][:user_databag] is set it will install for all the users listed in the databag that have vim: true.

The users data_bag format is expected to be in the format of the fnichol/chef-user or opscode-cookbooks/users cookbooks".
Only the "id" and "vim" keys are used by this cookbook.

Right now it also installs the following:

  • git
  • golang
  • vim-nox
  • pathogen.vim
  • vim-go

It also sets up a basic .vimrc suitable for go development

Will not overwrite:

  • ~/.vim/bundle/vim-go
  • ~/.vim/autoload/pathogen.vim

Only tested with ubuntu 14.04 but probably will work elsewhere.

Requirements

Platforms

ubuntu >= 14.04

Dependencies

apt >= 0.0.0

git >= 0.0.0

golang >= 0.0.0

vim >= 0.0.0

Attributes

vim_go/users_databag
  calculated: false
  choice: []
  default: users
  description: Name of the users data_bag
  display_name: Users Databag
  type: string
  recipes: []
  required: optional

vim_go/install_vim
  calculated: false
  choice: []
  default: true
  description: Install Vim
  display_name: Install Vim
  type: boolean
  recipes: []
  required: optional

Recipes

vim_go::default
  Does all the work to install vim-go and dependencies

Testing and Utility

<:task default=""> [prepare, test]>
  Install required Gems and Cookbook then run all tests

<:task direnv=""> []>
  Setup direnv by updating path to have chefdk first and remove any rvm directories from the PATH

<:task integration=""> [integration:kitchen]>

<:task integration:kitchen=""> []>

<:task kitchen:all=""> [default-ubuntu-1404]>
  Run all test instances

<:task kitchen:default-ubuntu-1404=""> []>
  Run default-ubuntu-1404 test instance

<:task prepare=""> [prepare:bundle, prepare:berks]>
  Install required Gems and Cookbooks

<:task prepare:berks=""> []>

<:task prepare:bundle=""> []>

<:task readme=""> []>
  Generate the Readme.md file.

<:task spec=""> [unit]>

<:task style=""> [style:foodcritic, style:rubocop]>
  Run all style checks

<:task style:foodcritic=""> []>

<:task style:rubocop=""> []>

<:task test=""> [style, unit, integration]>
  Run all tests

<:task unit=""> [unit:chefspec]>
  Run all unit tests

<:task unit:chefspec=""> []>

<:task yard=""> []>
  Generate YARD Documentation

License and Authors

The following engineers have contributed to this code:
* Robert J. Berger - 10 commits

Copyright:: 2015, Mist Systems, LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Contributing

We welcome contributed improvements and bug fixes via the usual workflow:

  1. Fork this repository
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new pull request

Dependent cookbooks

apt >= 0.0.0
git >= 0.0.0
golang >= 0.0.0
vim >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

vim-go CHANGELOG

This file is used to list changes made in each version of the vim-go cookbook.

0.1.0

  • rberger - Initial release of vim-go

0.1.1

  • rberger - Moved to using cookbooks instead of packages for git and vim. Added attribute to disalbe installing vim

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Foodcritic Metric
            

0.1.1 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c6b7bffc7b69344132a58449/vim-go/attributes/default.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c6b7bffc7b69344132a58449/vim-go/attributes/default.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c6b7bffc7b69344132a58449/vim-go/recipes/default.rb:23
FC003: Check whether you are running with chef server before using server-specific features: /tmp/cook/c6b7bffc7b69344132a58449/vim-go/recipes/default.rb:30
FC019: Access node attributes in a consistent manner: /tmp/cook/c6b7bffc7b69344132a58449/vim-go/attributes/default.rb:20
FC019: Access node attributes in a consistent manner: /tmp/cook/c6b7bffc7b69344132a58449/vim-go/attributes/default.rb:21
FC019: Access node attributes in a consistent manner: /tmp/cook/c6b7bffc7b69344132a58449/vim-go/recipes/default.rb:23
FC031: Cookbook without metadata file: /tmp/cook/c6b7bffc7b69344132a58449/vim-go/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/c6b7bffc7b69344132a58449/vim-go/metadata.rb:1